ParseUInt64() static private method

static private ParseUInt64 ( String value, NumberStyles options, NumberFormatInfo numfmt ) : UInt64
value String
options NumberStyles
numfmt NumberFormatInfo
return UInt64
示例#1
0
        public static ulong Parse(String s, NumberStyles style, IFormatProvider provider)
        {
            NumberFormatInfo info = NumberFormatInfo.GetInstance(provider);

            NumberFormatInfo.ValidateParseStyle(style);
            return(Number.ParseUInt64(s, style, info));
        }
示例#2
0
 public static ulong Parse(string s, IFormatProvider?provider)
 {
     if (s == null)
     {
         ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
     }
     return(Number.ParseUInt64(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)));
 }
示例#3
0
 public static ulong Parse(string s)
 {
     if (s == null)
     {
         ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
     }
     return(Number.ParseUInt64(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo));
 }
示例#4
0
 public static ulong Parse(string s, NumberStyles style)
 {
     NumberFormatInfo.ValidateParseStyleInteger(style);
     if (s == null)
     {
         ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
     }
     return(Number.ParseUInt64(s, style, NumberFormatInfo.CurrentInfo));
 }
示例#5
0
 public static ulong Parse(String s, NumberStyles style, IFormatProvider provider)
 {
     NumberFormatInfo.ValidateParseStyleInteger(style);
     if (s == null)
     {
         ThrowHelper.ThrowArgumentNullException(ExceptionArgument.s);
     }
     return(Number.ParseUInt64(s.AsReadOnlySpan(), style, NumberFormatInfo.GetInstance(provider)));
 }
示例#6
0
 public unsafe static UIntPtr Parse(String s, NumberStyles style)
 {
     NumberFormatInfo.ValidateParseStyle(style);
     if (sizeof(UIntPtr) == 4)
     {
         return(Number.ParseUInt32(s, style));
     }
     else
     {
         return(Number.ParseUInt64(s, style));
     }
 }
示例#7
0
文件: UInt64.cs 项目: shrah/coreclr
 public static ulong Parse(string s, IFormatProvider provider)
 {
     return(Number.ParseUInt64(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)));
 }
示例#8
0
文件: UInt64.cs 项目: shrah/coreclr
 public static ulong Parse(String s, NumberStyles style)
 {
     NumberFormatInfo.ValidateParseStyleInteger(style);
     return(Number.ParseUInt64(s, style, NumberFormatInfo.CurrentInfo));
 }
示例#9
0
文件: UInt64.cs 项目: shrah/coreclr
 public static ulong Parse(String s)
 {
     return(Number.ParseUInt64(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo));
 }
示例#10
0
 public static ulong Parse(ReadOnlySpan <char> s, NumberStyles style = NumberStyles.Integer, IFormatProvider?provider = null)
 {
     NumberFormatInfo.ValidateParseStyleInteger(style);
     return(Number.ParseUInt64(s, style, NumberFormatInfo.GetInstance(provider)));
 }
 public static ulong Parse(string s, NumberStyles style, IFormatProvider provider)
 {
     NumberFormatInfo2.ValidateParseStyleInteger(style);
     return(Number.ParseUInt64(s, style, NumberFormatInfo.GetInstance(provider)));
 }