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