Method TryParseInt64
TryParseInt64(String)
Attempts to parse a string to a Maybe<T> of System.Int64. If the parse fails (or source is null) an empty maybe is returned.
Declaration
public static Maybe<Int64> TryParseInt64(this string source)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | source | The string to parse. |
Returns
| Type | Description |
|---|---|
| Maybe<Int64> | A Maybe<T> containing a valid Int64 value parsed from the string, or an empty maybe instance if the parse failed. |