internal NumberFormatInfo(CultureData cultureData) { if (cultureData == null) { return; } cultureData.GetNFIValues(this); if (!cultureData.IsInvariantCulture) { return; } this.m_isInvariant = true; }
internal NumberFormatInfo(CultureData cultureData) { if (cultureData != null) { // We directly use fields here since these data is coming from data table or Win32, so we // don't need to verify their values (except for invalid parsing situations). cultureData.GetNFIValues(this); if (cultureData.IsInvariantCulture) { // For invariant culture this.m_isInvariant = true; } } }
internal NumberFormatInfo(CultureData cultureData) { this.numberGroupSizes = new int[] { 3 }; this.currencyGroupSizes = new int[] { 3 }; this.percentGroupSizes = new int[] { 3 }; this.positiveSign = "+"; this.negativeSign = "-"; this.numberDecimalSeparator = "."; this.numberGroupSeparator = ","; this.currencyGroupSeparator = ","; this.currencyDecimalSeparator = "."; this.currencySymbol = "\x00a4"; this.nanSymbol = "NaN"; this.positiveInfinitySymbol = "Infinity"; this.negativeInfinitySymbol = "-Infinity"; this.percentDecimalSeparator = "."; this.percentGroupSeparator = ","; this.percentSymbol = "%"; this.perMilleSymbol = "‰"; this.nativeDigits = new string[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" }; this.numberDecimalDigits = 2; this.currencyDecimalDigits = 2; this.numberNegativePattern = 1; this.percentDecimalDigits = 2; this.digitSubstitution = 1; this.validForParseAsNumber = true; this.validForParseAsCurrency = true; if (cultureData != null) { cultureData.GetNFIValues(this); if (cultureData.IsInvariantCulture) { this.m_isInvariant = true; } } }
[System.Security.SecuritySafeCritical] // auto-generated internal NumberFormatInfo(CultureData cultureData) { if (cultureData != null) { // We directly use fields here since these data is coming from data table or Win32, so we // don't need to verify their values (except for invalid parsing situations). cultureData.GetNFIValues(this); if (cultureData.IsInvariantCulture) { // For invariant culture this.m_isInvariant = true; } } }