/// <summary>
 /// Parses the current string for a true/false value and returns an Option{bool} of the result.
 /// </summary>
 public static Option <bool> TryParseBoolean(this string source) => ReflectionBasedParser.Parse <bool>(source);
Exemple #2
0
 /// <summary>
 /// Parses the current string for a 64 bit signed integer and returns an Option{long} with None or the value.
 /// </summary>
 public static Option <long> TryParseLong(this string source) => ReflectionBasedParser.Parse <long>(source);
Exemple #3
0
 /// <summary>
 /// Parses the current string for a 64 bit unsigned integer and returns an Option{ulong} with None or the value.
 /// </summary>
 public static Option <ulong> TryParseUnsignedLong(this string source) => ReflectionBasedParser.Parse <ulong>(source);
Exemple #4
0
 /// <summary>
 /// Parses the current string for a 32 bit signed integer and returns an Option{int} with None or the value.
 /// </summary>
 public static Option <int> TryParseInt(this string source) => ReflectionBasedParser.Parse <int>(source);
Exemple #5
0
 /// <summary>
 /// Parses the current string for a 32 bit unsigned integer and returns an Option{uint} with None or the value.
 /// </summary>
 public static Option <uint> TryParseUnsignedInt(this string source) => ReflectionBasedParser.Parse <uint>(source);
Exemple #6
0
 /// <summary>
 /// Parses the current string for a 16 bit signed integer and returns an Option{short} with None or the value.
 /// </summary>
 public static Option <short> TryParseShort(this string source) => ReflectionBasedParser.Parse <short>(source);
Exemple #7
0
 /// <summary>
 /// Parses the current string for an 8 bit unsigned integer and returns an Option{byte} with None or the value.
 /// </summary>
 public static Option <byte> TryParseUnsignedByte(this string source) => ReflectionBasedParser.Parse <byte>(source);
 /// <summary>
 /// Parses the current string for a 128 bit float value and returns an Option{decimal} with None or the value.
 /// </summary>
 public static Option <decimal> TryParseDecimal(this string source) => ReflectionBasedParser.Parse <decimal>(source);
 /// <summary>
 /// Parses the current string for a 64 bit float value and returns an Option{double} with None or the value.
 /// </summary>
 public static Option <double> TryParseDouble(this string source) => ReflectionBasedParser.Parse <double>(source);
Exemple #10
0
 /// <summary>
 /// Parses the current string for a 32 bit float value and returns an Option{float} with None or the value.
 /// </summary>
 public static Option <float> TryParseFloat(this string source) => ReflectionBasedParser.Parse <float>(source);