Beispiel #1
0
 /// <summary>
 /// Cast <see cref="string"/> to <see cref="long"/>
 /// </summary>
 /// <param name="str"></param>
 /// <param name="impls"></param>
 /// <returns></returns>
 public static long CastToInt64(this string str, params IConversionImpl <string, long>[] impls) => NumericConv.StringToInt64(str, impls);
Beispiel #2
0
 /// <summary>
 /// Cast <see cref="string"/> to <see cref="long"/>
 /// </summary>
 /// <param name="str"></param>
 /// <param name="defaultVal"></param>
 /// <returns></returns>
 public static long CastToInt64(this string str, long defaultVal = default) => NumericConv.StringToInt64(str, defaultVal);