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