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