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
ファイル: UInt64.cs プロジェクト: zaytsev-victor/coreclr
 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
ファイル: UIntPtr.cs プロジェクト: Paul1nh0/Singularity
 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)));
 }
コード例 #11
0
 public static ulong Parse(string s, NumberStyles style, IFormatProvider provider)
 {
     NumberFormatInfo2.ValidateParseStyleInteger(style);
     return(Number.ParseUInt64(s, style, NumberFormatInfo.GetInstance(provider)));
 }