예제 #1
0
 /// <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);
예제 #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);
예제 #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);
예제 #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);
예제 #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);
예제 #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);
예제 #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);
예제 #8
0
 /// <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);
예제 #9
0
 /// <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);
예제 #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);