7 instantiations of NumberFormatInfo
mscorlib (3)
system\globalization\cultureinfo.cs (1)
1415NumberFormatInfo temp = new NumberFormatInfo(this.m_cultureData);
system\globalization\datetimeformatinfo.cs (1)
2180String decimalSeparator = new NumberFormatInfo(cultureDataWithoutUserOverrides).NumberDecimalSeparator;
system\globalization\numberformatinfo.cs (1)
276NumberFormatInfo nfi = new NumberFormatInfo();
System.Data.SqlXml (4)
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
167NumberFormatInfo info = new NumberFormatInfo();
System\Xml\Xsl\XsltOld\ContainerAction.cs (1)
313NumberFormatInfo info = new NumberFormatInfo();
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
111NumberFormatInfo NumberFormat = new NumberFormatInfo();
System\Xml\Xsl\XsltOld\XsltCompileContext.cs (1)
332formatInfo = new DecimalFormat(new NumberFormatInfo(), '#', '0', ';');
776 references to NumberFormatInfo
mscorlib (218)
system\byte.cs (15)
92return Parse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 97NumberFormatInfo.ValidateParseStyleInteger(style); 98return Parse(s, style, NumberFormatInfo.CurrentInfo); 103return Parse(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 112NumberFormatInfo.ValidateParseStyleInteger(style); 113return Parse(s, style, NumberFormatInfo.GetInstance(provider)); 116private static byte Parse(String s, NumberStyles style, NumberFormatInfo info) { 130return TryParse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 134NumberFormatInfo.ValidateParseStyleInteger(style); 135return TryParse(s, style, NumberFormatInfo.GetInstance(provider), out result); 138private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out Byte result) { 155return Number.FormatInt32(m_value, null, NumberFormatInfo.CurrentInfo); 162return Number.FormatInt32(m_value, format, NumberFormatInfo.CurrentInfo); 169return Number.FormatInt32(m_value, null, NumberFormatInfo.GetInstance(provider)); 176return Number.FormatInt32(m_value, format, NumberFormatInfo.GetInstance(provider));
system\decimal.cs (13)
501return Number.FormatDecimal(this, null, NumberFormatInfo.CurrentInfo); 507return Number.FormatDecimal(this, format, NumberFormatInfo.CurrentInfo); 513return Number.FormatDecimal(this, null, NumberFormatInfo.GetInstance(provider)); 519return Number.FormatDecimal(this, format, NumberFormatInfo.GetInstance(provider)); 531return Number.ParseDecimal(s, NumberStyles.Number, NumberFormatInfo.CurrentInfo); 535NumberFormatInfo.ValidateParseStyleFloatingPoint(style); 536return Number.ParseDecimal(s, style, NumberFormatInfo.CurrentInfo); 540return Number.ParseDecimal(s, NumberStyles.Number, NumberFormatInfo.GetInstance(provider)); 544NumberFormatInfo.ValidateParseStyleFloatingPoint(style); 545return Number.ParseDecimal(s, style, NumberFormatInfo.GetInstance(provider)); 549return Number.TryParseDecimal(s, NumberStyles.Number, NumberFormatInfo.CurrentInfo, out result); 553NumberFormatInfo.ValidateParseStyleFloatingPoint(style); 554return Number.TryParseDecimal(s, style, NumberFormatInfo.GetInstance(provider), out result);
system\double.cs (15)
214return Number.FormatDouble(m_value, null, NumberFormatInfo.CurrentInfo); 220return Number.FormatDouble(m_value, format, NumberFormatInfo.CurrentInfo); 226return Number.FormatDouble(m_value, null, NumberFormatInfo.GetInstance(provider)); 232return Number.FormatDouble(m_value, format, NumberFormatInfo.GetInstance(provider)); 236return Parse(s, NumberStyles.Float| NumberStyles.AllowThousands, NumberFormatInfo.CurrentInfo); 240NumberFormatInfo.ValidateParseStyleFloatingPoint(style); 241return Parse(s, style, NumberFormatInfo.CurrentInfo); 245return Parse(s, NumberStyles.Float| NumberStyles.AllowThousands, NumberFormatInfo.GetInstance(provider)); 249NumberFormatInfo.ValidateParseStyleFloatingPoint(style); 250return Parse(s, style, NumberFormatInfo.GetInstance(provider)); 261private static double Parse(String s, NumberStyles style, NumberFormatInfo info) { 266return TryParse(s, NumberStyles.Float| NumberStyles.AllowThousands, NumberFormatInfo.CurrentInfo, out result); 270NumberFormatInfo.ValidateParseStyleFloatingPoint(style); 271return TryParse(s, style, NumberFormatInfo.GetInstance(provider), out result); 274private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out double result) {
system\globalization\culturedata.cs (2)
3137internal void GetNFIValues(NumberFormatInfo nfi) 3506internal static extern bool nativeGetNumberFormatInfoValues(String localeName, NumberFormatInfo nfi, bool useUserOverride);
system\globalization\cultureinfo.cs (9)
76internal NumberFormatInfo numInfo; 1366if (formatType == typeof(NumberFormatInfo)) { 1409public virtual NumberFormatInfo NumberFormat { 1412Contract.Ensures(Contract.Result<NumberFormatInfo>() != null); 1415NumberFormatInfo temp = new NumberFormatInfo(this.m_cultureData); 1635ci.numInfo = (NumberFormatInfo)this.numInfo.Clone(); 1642ci.NumberFormat = (NumberFormatInfo)this.NumberFormat.Clone(); 1680newInfo.numInfo = NumberFormatInfo.ReadOnly(ci.numInfo); 1685newInfo.NumberFormat = NumberFormatInfo.ReadOnly(ci.NumberFormat);
system\globalization\japanesecalendar.cs (3)
296if (!Number.TryParseInt32(value.Substring(0,4), NumberStyles.None, NumberFormatInfo.InvariantInfo, out year) || 297!Number.TryParseInt32(value.Substring(5,2), NumberStyles.None, NumberFormatInfo.InvariantInfo, out month) || 298!Number.TryParseInt32(value.Substring(8,2), NumberStyles.None, NumberFormatInfo.InvariantInfo, out day))
system\globalization\numberformatinfo.cs (19)
49private static volatile NumberFormatInfo invariantInfo; 271public static NumberFormatInfo InvariantInfo { 276NumberFormatInfo nfi = new NumberFormatInfo(); 285public static NumberFormatInfo GetInstance(IFormatProvider formatProvider) { 287NumberFormatInfo info; 299info = formatProvider as NumberFormatInfo; 304info = formatProvider.GetFormat(typeof(NumberFormatInfo)) as NumberFormatInfo; 315NumberFormatInfo n = (NumberFormatInfo)MemberwiseClone(); 465public static NumberFormatInfo CurrentInfo { 469NumberFormatInfo info = culture.numInfo; 474return ((NumberFormatInfo)culture.GetFormat(typeof(NumberFormatInfo))); 795return formatType == typeof(NumberFormatInfo)? this: null; 798public static NumberFormatInfo ReadOnly(NumberFormatInfo nfi) { 806NumberFormatInfo info = (NumberFormatInfo)(nfi.MemberwiseClone());
system\int16.cs (16)
87return Number.FormatInt32(m_value, null, NumberFormatInfo.CurrentInfo); 93return Number.FormatInt32(m_value, null, NumberFormatInfo.GetInstance(provider)); 98return ToString(format, NumberFormatInfo.CurrentInfo); 103return ToString(format, NumberFormatInfo.GetInstance(provider)); 107private String ToString(String format, NumberFormatInfo info) { 118return Parse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 122NumberFormatInfo.ValidateParseStyleInteger(style); 123return Parse(s, style, NumberFormatInfo.CurrentInfo); 127return Parse(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 131NumberFormatInfo.ValidateParseStyleInteger(style); 132return Parse(s, style, NumberFormatInfo.GetInstance(provider)); 135private static short Parse(String s, NumberStyles style, NumberFormatInfo info) { 159return TryParse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 163NumberFormatInfo.ValidateParseStyleInteger(style); 164return TryParse(s, style, NumberFormatInfo.GetInstance(provider), out result); 167private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out Int16 result) {
system\int32.cs (13)
94return Number.FormatInt32(m_value, null, NumberFormatInfo.CurrentInfo); 101return Number.FormatInt32(m_value, format, NumberFormatInfo.CurrentInfo); 108return Number.FormatInt32(m_value, null, NumberFormatInfo.GetInstance(provider)); 115return Number.FormatInt32(m_value, format, NumberFormatInfo.GetInstance(provider)); 120return Number.ParseInt32(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 125NumberFormatInfo.ValidateParseStyleInteger(style); 126return Number.ParseInt32(s, style, NumberFormatInfo.CurrentInfo); 135return Number.ParseInt32(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 144NumberFormatInfo.ValidateParseStyleInteger(style); 145return Number.ParseInt32(s, style, NumberFormatInfo.GetInstance(provider)); 153return Number.TryParseInt32(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 161NumberFormatInfo.ValidateParseStyleInteger(style); 162return Number.TryParseInt32(s, style, NumberFormatInfo.GetInstance(provider), out result);
system\int64.cs (13)
92return Number.FormatInt64(m_value, null, NumberFormatInfo.CurrentInfo); 98return Number.FormatInt64(m_value, null, NumberFormatInfo.GetInstance(provider)); 104return Number.FormatInt64(m_value, format, NumberFormatInfo.CurrentInfo); 110return Number.FormatInt64(m_value, format, NumberFormatInfo.GetInstance(provider)); 114return Number.ParseInt64(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 118NumberFormatInfo.ValidateParseStyleInteger(style); 119return Number.ParseInt64(s, style, NumberFormatInfo.CurrentInfo); 123return Number.ParseInt64(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 132NumberFormatInfo.ValidateParseStyleInteger(style); 133return Number.ParseInt64(s, style, NumberFormatInfo.GetInstance(provider)); 137return Number.TryParseInt64(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 141NumberFormatInfo.ValidateParseStyleInteger(style); 142return Number.TryParseInt64(s, style, NumberFormatInfo.GetInstance(provider), out result);
system\number.cs (26)
296public static extern String FormatDecimal(Decimal value, String format, NumberFormatInfo info); 300public static extern String FormatDouble(double value, String format, NumberFormatInfo info); 304public static extern String FormatInt32(int value, String format, NumberFormatInfo info); 308public static extern String FormatUInt32(uint value, String format, NumberFormatInfo info); 312public static extern String FormatInt64(long value, String format, NumberFormatInfo info); 316public static extern String FormatUInt64(ulong value, String format, NumberFormatInfo info); 320public static extern String FormatSingle(float value, String format, NumberFormatInfo info); 335internal static extern unsafe string FormatNumberBuffer(byte* number, string format, NumberFormatInfo info, char* allDigits); 649internal unsafe static Decimal ParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt) { 664internal unsafe static Double ParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt) { 698internal unsafe static Int32 ParseInt32(String s, NumberStyles style, NumberFormatInfo info) { 720internal unsafe static Int64 ParseInt64(String value, NumberStyles options, NumberFormatInfo numfmt) { 741private unsafe static Boolean ParseNumber(ref char * str, NumberStyles options, ref NumberBuffer number, StringBuilder sb, NumberFormatInfo numfmt, Boolean parseDecimal) { 941internal unsafe static Single ParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt) { 978internal unsafe static UInt32 ParseUInt32(String value, NumberStyles options, NumberFormatInfo numfmt) { 1001internal unsafe static UInt64 ParseUInt64(String value, NumberStyles options, NumberFormatInfo numfmt) { 1021private unsafe static void StringToNumber(String str, NumberStyles options, ref NumberBuffer number, NumberFormatInfo info, Boolean parseDecimal) { 1048internal unsafe static Boolean TryParseDecimal(String value, NumberStyles options, NumberFormatInfo numfmt, out Decimal result) { 1065internal unsafe static Boolean TryParseDouble(String value, NumberStyles options, NumberFormatInfo numfmt, out Double result) { 1081internal unsafe static Boolean TryParseInt32(String s, NumberStyles style, NumberFormatInfo info, out Int32 result) { 1105internal unsafe static Boolean TryParseInt64(String s, NumberStyles style, NumberFormatInfo info, out Int64 result) { 1129internal unsafe static Boolean TryParseSingle(String value, NumberStyles options, NumberFormatInfo numfmt, out Single result) { 1151internal unsafe static Boolean TryParseUInt32(String s, NumberStyles style, NumberFormatInfo info, out UInt32 result) { 1175internal unsafe static Boolean TryParseUInt64(String s, NumberStyles style, NumberFormatInfo info, out UInt64 result) { 1198internal static Boolean TryStringToNumber(String str, NumberStyles options, ref NumberBuffer number, NumberFormatInfo numfmt, Boolean parseDecimal) { 1204internal unsafe static Boolean TryStringToNumber(String str, NumberStyles options, ref NumberBuffer number, StringBuilder sb, NumberFormatInfo numfmt, Boolean parseDecimal) {
system\sbyte.cs (16)
89return Number.FormatInt32(m_value, null, NumberFormatInfo.CurrentInfo); 95return Number.FormatInt32(m_value, null, NumberFormatInfo.GetInstance(provider)); 100return ToString(format, NumberFormatInfo.CurrentInfo); 105return ToString(format, NumberFormatInfo.GetInstance(provider)); 109private String ToString(String format, NumberFormatInfo info) { 121return Parse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 126NumberFormatInfo.ValidateParseStyleInteger(style); 127return Parse(s, style, NumberFormatInfo.CurrentInfo); 132return Parse(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 141NumberFormatInfo.ValidateParseStyleInteger(style); 142return Parse(s, style, NumberFormatInfo.GetInstance(provider)); 145private static sbyte Parse(String s, NumberStyles style, NumberFormatInfo info) { 168return TryParse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 173NumberFormatInfo.ValidateParseStyleInteger(style); 174return TryParse(s, style, NumberFormatInfo.GetInstance(provider), out result); 177private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out SByte result) {
system\security\claims\ClaimsPrincipal.cs (2)
410if (Int64.TryParse(listOfIdentities[i], NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out handle)) 448identities.Add(windowsIdentity.GetTokenInternal().ToInt64().ToString(NumberFormatInfo.InvariantInfo));
system\single.cs (15)
182return Number.FormatSingle(m_value, null, NumberFormatInfo.CurrentInfo); 188return Number.FormatSingle(m_value, null, NumberFormatInfo.GetInstance(provider)); 194return Number.FormatSingle(m_value, format, NumberFormatInfo.CurrentInfo); 200return Number.FormatSingle(m_value, format, NumberFormatInfo.GetInstance(provider)); 212return Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, NumberFormatInfo.CurrentInfo); 216NumberFormatInfo.ValidateParseStyleFloatingPoint(style); 217return Parse(s, style, NumberFormatInfo.CurrentInfo); 221return Parse(s, NumberStyles.Float | NumberStyles.AllowThousands, NumberFormatInfo.GetInstance(provider)); 225NumberFormatInfo.ValidateParseStyleFloatingPoint(style); 226return Parse(s, style, NumberFormatInfo.GetInstance(provider)); 229private static float Parse(String s, NumberStyles style, NumberFormatInfo info) { 234return TryParse(s, NumberStyles.Float | NumberStyles.AllowThousands, NumberFormatInfo.CurrentInfo, out result); 238NumberFormatInfo.ValidateParseStyleFloatingPoint(style); 239return TryParse(s, style, NumberFormatInfo.GetInstance(provider), out result); 242private static Boolean TryParse(String s, NumberStyles style, NumberFormatInfo info, out Single result) {
system\uint16.cs (15)
84return Number.FormatUInt32(m_value, null, NumberFormatInfo.CurrentInfo); 90return Number.FormatUInt32(m_value, null, NumberFormatInfo.GetInstance(provider)); 97return Number.FormatUInt32(m_value, format, NumberFormatInfo.CurrentInfo); 103return Number.FormatUInt32(m_value, format, NumberFormatInfo.GetInstance(provider)); 108return Parse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 113NumberFormatInfo.ValidateParseStyleInteger(style); 114return Parse(s, style, NumberFormatInfo.CurrentInfo); 120return Parse(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 125NumberFormatInfo.ValidateParseStyleInteger(style); 126return Parse(s, style, NumberFormatInfo.GetInstance(provider)); 129private static ushort Parse(String s, NumberStyles style, NumberFormatInfo info) { 145return TryParse(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 150NumberFormatInfo.ValidateParseStyleInteger(style); 151return TryParse(s, style, NumberFormatInfo.GetInstance(provider), out result); 154private static bool TryParse(String s, NumberStyles style, NumberFormatInfo info, out UInt16 result) {
system\uint32.cs (13)
95return Number.FormatUInt32(m_value, null, NumberFormatInfo.CurrentInfo); 101return Number.FormatUInt32(m_value, null, NumberFormatInfo.GetInstance(provider)); 107return Number.FormatUInt32(m_value, format, NumberFormatInfo.CurrentInfo); 113return Number.FormatUInt32(m_value, format, NumberFormatInfo.GetInstance(provider)); 118return Number.ParseUInt32(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 123NumberFormatInfo.ValidateParseStyleInteger(style); 124return Number.ParseUInt32(s, style, NumberFormatInfo.CurrentInfo); 130return Number.ParseUInt32(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 135NumberFormatInfo.ValidateParseStyleInteger(style); 136return Number.ParseUInt32(s, style, NumberFormatInfo.GetInstance(provider)); 141return Number.TryParseUInt32(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 146NumberFormatInfo.ValidateParseStyleInteger(style); 147return Number.TryParseUInt32(s, style, NumberFormatInfo.GetInstance(provider), out result);
system\uint64.cs (13)
91return Number.FormatUInt64(m_value, null, NumberFormatInfo.CurrentInfo); 97return Number.FormatUInt64(m_value, null, NumberFormatInfo.GetInstance(provider)); 103return Number.FormatUInt64(m_value, format, NumberFormatInfo.CurrentInfo); 109return Number.FormatUInt64(m_value, format, NumberFormatInfo.GetInstance(provider)); 114return Number.ParseUInt64(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 119NumberFormatInfo.ValidateParseStyleInteger(style); 120return Number.ParseUInt64(s, style, NumberFormatInfo.CurrentInfo); 125return Number.ParseUInt64(s, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 130NumberFormatInfo.ValidateParseStyleInteger(style); 131return Number.ParseUInt64(s, style, NumberFormatInfo.GetInstance(provider)); 136return Number.TryParseUInt64(s, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 141NumberFormatInfo.ValidateParseStyleInteger(style); 142return Number.TryParseUInt64(s, style, NumberFormatInfo.GetInstance(provider), out result);
PresentationBuildTasks (2)
Shared\MS\Internal\TokenizerHelper.cs (2)
342NumberFormatInfo numberFormat = NumberFormatInfo.GetInstance(provider);
PresentationCore (5)
Core\CSharp\MS\Internal\IO\Packaging\ByteRangeDownloader.cs (3)
884NumberStyles.None, NumberFormatInfo.InvariantInfo); 896int lastByteOffset = Int32.Parse(contentRange.Substring(0, index), NumberStyles.None, NumberFormatInfo.InvariantInfo); 907Int32.Parse(contentRange, NumberStyles.None, NumberFormatInfo.InvariantInfo);
Core\CSharp\MS\Internal\TextFormatting\NumberSubstitution.cs (1)
551private NumberFormatInfo _format;
Core\CSharp\System\Windows\Media\FamilyMap.cs (1)
118sb.AppendFormat(NumberFormatInfo.InvariantInfo, "{0:x4}-{1:x4}", _ranges[i].First, _ranges[i].Last);
PresentationFramework (39)
src\Framework\MS\Internal\Annotations\Anchoring\FixedPageProcessor.cs (2)
196pageNumber = Int32.Parse(pageNumberString, NumberFormatInfo.InvariantInfo); 339part.NameValuePairs.Add(ValueAttributeName, page.ToString(NumberFormatInfo.InvariantInfo));
src\Framework\MS\Internal\Annotations\Anchoring\FixedTextSelectionProcessor.cs (14)
217part.NameValuePairs.Add(TextSelectionProcessor.CountAttribute, 1.ToString(NumberFormatInfo.InvariantInfo)); 218part.NameValuePairs.Add(TextSelectionProcessor.SegmentAttribute + 0.ToString(NumberFormatInfo.InvariantInfo), ",,,"); 222part.NameValuePairs.Add(TextSelectionProcessor.CountAttribute, fp.Segments.Count.ToString(NumberFormatInfo.InvariantInfo)); 229value += fp.Segments[i].Start.X.ToString(NumberFormatInfo.InvariantInfo) + TextSelectionProcessor.Separator[0] + fp.Segments[i].Start.Y.ToString(NumberFormatInfo.InvariantInfo); 238value += fp.Segments[i].End.X.ToString(NumberFormatInfo.InvariantInfo) + TextSelectionProcessor.Separator[0] + fp.Segments[i].End.Y.ToString(NumberFormatInfo.InvariantInfo); 245part.NameValuePairs.Add(TextSelectionProcessor.SegmentAttribute + i.ToString(NumberFormatInfo.InvariantInfo), value); 326int count = Int32.Parse(stringCount, NumberFormatInfo.InvariantInfo); 520string segmentValue = locatorPart.NameValuePairs[TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)]; 522throw new ArgumentException(SR.Get(SRID.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo))); 526throw new ArgumentException(SR.Get(SRID.InvalidLocatorPart, TextSelectionProcessor.SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo))); 542double x = Double.Parse(xstr, NumberFormatInfo.InvariantInfo); 543double y = Double.Parse(ystr, NumberFormatInfo.InvariantInfo);
src\Framework\MS\Internal\Annotations\Anchoring\TextSelectionProcessor.cs (10)
179part.NameValuePairs.Add(SegmentAttribute + i.ToString(NumberFormatInfo.InvariantInfo), startOffset.ToString(NumberFormatInfo.InvariantInfo) + TextSelectionProcessor.Separator[0] + endOffset.ToString(NumberFormatInfo.InvariantInfo)); 182part.NameValuePairs.Add(CountAttribute, textSegments.Count.ToString(NumberFormatInfo.InvariantInfo)); 226int count = Int32.Parse(stringCount,NumberFormatInfo.InvariantInfo); 383int count = Int32.Parse(stringCount,NumberFormatInfo.InvariantInfo); 461string segmentString = locatorPart.NameValuePairs[SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo)]; 466throw new ArgumentException(SR.Get(SRID.InvalidLocatorPart, SegmentAttribute + segmentNumber.ToString(NumberFormatInfo.InvariantInfo))); 469startOffset = Int32.Parse(values[0], NumberFormatInfo.InvariantInfo); 470endOffset = Int32.Parse(values[1], NumberFormatInfo.InvariantInfo);
src\Framework\MS\Internal\Annotations\Anchoring\TextViewSelectionProcessor.cs (4)
162part.NameValuePairs.Add(TextSelectionProcessor.CountAttribute, 1.ToString(NumberFormatInfo.InvariantInfo)); 163part.NameValuePairs.Add(TextSelectionProcessor.SegmentAttribute + 0.ToString(NumberFormatInfo.InvariantInfo), startOffset.ToString(NumberFormatInfo.InvariantInfo) + TextSelectionProcessor.Separator[0] + endOffset.ToString(NumberFormatInfo.InvariantInfo));
src\Framework\MS\Internal\AppModel\ResourceContainer.cs (1)
302assemblyKey += reqKeyToken[i].ToString("x", NumberFormatInfo.InvariantInfo);
src\Framework\System\Windows\Annotations\LocatorPart.cs (2)
381string startStr = startOffset.ToString(NumberFormatInfo.InvariantInfo); 382string endStr = endOffset.ToString(NumberFormatInfo.InvariantInfo);
src\Framework\System\Windows\Controls\BorderGapMaskConverter.cs (1)
85lineWidth = Double.Parse(((string)parameter), NumberFormatInfo.InvariantInfo);
src\Framework\System\Windows\Controls\DataGridClipboardHelper.cs (1)
206output.Write(((int)ch).ToString(NumberFormatInfo.InvariantInfo));
src\Framework\System\Windows\Controls\MenuScrollingVisibilityConverter.cs (1)
85target = Double.Parse(((string)parameter), NumberFormatInfo.InvariantInfo);
src\Framework\System\Windows\Controls\Slider.cs (3)
909NumberFormatInfo format = (NumberFormatInfo)(NumberFormatInfo.CurrentInfo.Clone());
SMSvcHost (3)
System\ServiceModel\Activation\ListenerAdapter.cs (2)
508siteId.ToString(NumberFormatInfo.CurrentInfo), 550siteId.ToString(NumberFormatInfo.CurrentInfo),
System\ServiceModel\Activation\WorkerProcess.cs (1)
120this.ProcessId.ToString(NumberFormatInfo.InvariantInfo),
System (187)
compmod\system\componentmodel\basenumberconverter.cs (8)
51internal abstract object FromString(string value, NumberFormatInfo formatInfo); 68internal abstract string ToString(object value, NumberFormatInfo formatInfo); 102NumberFormatInfo formatInfo = (NumberFormatInfo)culture.GetFormat(typeof(NumberFormatInfo)); 127NumberFormatInfo formatInfo = (NumberFormatInfo)culture.GetFormat(typeof(NumberFormatInfo));
compmod\system\componentmodel\ByteConverter.cs (2)
46internal override object FromString(string value, NumberFormatInfo formatInfo) { 61internal override string ToString(object value, NumberFormatInfo formatInfo) {
compmod\system\componentmodel\DecimalConverter.cs (2)
97internal override object FromString(string value, NumberFormatInfo formatInfo) { 112internal override string ToString(object value, NumberFormatInfo formatInfo) {
compmod\system\componentmodel\DoubleConverter.cs (2)
57internal override object FromString(string value, NumberFormatInfo formatInfo) { 72internal override string ToString(object value, NumberFormatInfo formatInfo) {
compmod\system\componentmodel\Int16Converter.cs (2)
52internal override object FromString(string value, NumberFormatInfo formatInfo) { 60internal override string ToString(object value, NumberFormatInfo formatInfo) {
compmod\system\componentmodel\Int32Converter.cs (2)
44internal override object FromString(string value, NumberFormatInfo formatInfo) { 61internal override string ToString(object value, NumberFormatInfo formatInfo) {
compmod\system\componentmodel\Int64Converter.cs (2)
45internal override object FromString(string value, NumberFormatInfo formatInfo) { 60internal override string ToString(object value, NumberFormatInfo formatInfo) {
compmod\system\componentmodel\SByteConverter.cs (2)
46internal override object FromString(string value, NumberFormatInfo formatInfo) { 61internal override string ToString(object value, NumberFormatInfo formatInfo) {
compmod\system\componentmodel\SingleConverter.cs (2)
56internal override object FromString(string value, NumberFormatInfo formatInfo) { 71internal override string ToString(object value, NumberFormatInfo formatInfo) {
compmod\system\componentmodel\UInt16Converter.cs (2)
45internal override object FromString(string value, NumberFormatInfo formatInfo) { 60internal override string ToString(object value, NumberFormatInfo formatInfo) {
compmod\system\componentmodel\UInt32Converter.cs (2)
46internal override object FromString(string value, NumberFormatInfo formatInfo) { 61internal override string ToString(object value, NumberFormatInfo formatInfo) {
compmod\system\componentmodel\UInt64Converter.cs (2)
48internal override object FromString(string value, NumberFormatInfo formatInfo) { 63internal override string ToString(object value, NumberFormatInfo formatInfo) {
net\System\Net\_Connection.cs (7)
1670GlobalLog.Enter("Connection#" + ValidationHelper.HashString(this) + "::ParseStatusLine", statusLineLength.ToString(NumberFormatInfo.InvariantInfo) + ", " + bytesParsed.ToString(NumberFormatInfo.InvariantInfo) +", " +statusState.ToString(NumberFormatInfo.InvariantInfo)); 1870GlobalLog.Enter("Connection::ParseStatusLineStrict", statusLineLength.ToString(NumberFormatInfo.InvariantInfo) + ", " + bytesParsed.ToString(NumberFormatInfo.InvariantInfo) + ", " + statusState.ToString(NumberFormatInfo.InvariantInfo)); 2220GlobalLog.Print("Connection#" + ValidationHelper.HashString(this) + "::ProcessHeaderData() Content-Length parsed:" + contentLength.ToString(NumberFormatInfo.InvariantInfo));
net\System\Net\_DigestClient.cs (4)
589NonceCount = Int32.Parse(value, NumberFormatInfo.InvariantInfo); 659stringBuilder.Append(HttpDigest.pair(HttpDigest.DA_nc, NonceCount.ToString("x8", NumberFormatInfo.InvariantInfo), true)); 1032authorization.Append(pair(DA_nc, digestChallenge.NonceCount.ToString("x8", NumberFormatInfo.InvariantInfo), false)); 1124challenge.NonceCount.ToString("x8", NumberFormatInfo.InvariantInfo) + ":" +
net\System\Net\_FtpControlStream.cs (14)
837sb.Append(port.ToString(NumberFormatInfo.InvariantInfo)); 894return Convert.ToInt64(parsedList[1], NumberFormatInfo.InvariantInfo); 910int year = Convert.ToInt32(dateTimeLine.Substring(0, 4), NumberFormatInfo.InvariantInfo); 911int month = Convert.ToInt16(dateTimeLine.Substring(4, 2), NumberFormatInfo.InvariantInfo); 912int day = Convert.ToInt16(dateTimeLine.Substring(6, 2), NumberFormatInfo.InvariantInfo); 913int hour = Convert.ToInt16(dateTimeLine.Substring(8, 2), NumberFormatInfo.InvariantInfo); 914int minute = Convert.ToInt16(dateTimeLine.Substring(10, 2), NumberFormatInfo.InvariantInfo); 915int second = Convert.ToInt16(dateTimeLine.Substring(12, 2), NumberFormatInfo.InvariantInfo); 918millisecond = Convert.ToInt16(parsedList[2], NumberFormatInfo.InvariantInfo); 998NumberFormatInfo.InvariantInfo, out result)) 1059int port = Convert.ToByte(parsedList[index--], NumberFormatInfo.InvariantInfo); 1061(Convert.ToByte(parsedList[index--], NumberFormatInfo.InvariantInfo) << 8); 1088return Convert.ToInt32(parsedList[3], NumberFormatInfo.InvariantInfo); 1190response.Status = Convert.ToInt16(response.StatusCodeString, NumberFormatInfo.InvariantInfo);
net\System\Net\_NetRes.cs (2)
82string webStatusCode = "(" + ((int)statusCode).ToString(NumberFormatInfo.InvariantInfo) + ")"; 112string webStatusCode = "(" + ((int)statusCode).ToString(NumberFormatInfo.InvariantInfo) + ")";
net\System\Net\_NTAuthentication.cs (17)
349m_UniqueUserId = (Interlocked.Increment(ref s_UniqueGroupId)).ToString(NumberFormatInfo.InvariantInfo) + m_UniqueUserId; 670GlobalLog.Enter("NTAuthentication#" + ValidationHelper.HashString(this) + "::GetOutgoingBlob", ((incomingBlob == null) ? "0" : incomingBlob.Length.ToString(NumberFormatInfo.InvariantInfo)) + " bytes"); 704GlobalLog.Print("NTAuthentication#" + ValidationHelper.HashString(this) + "::GetOutgoingBlob() SSPIWrapper.InitializeSecurityContext() returns statusCode:0x" + ((int) statusCode).ToString("x8", NumberFormatInfo.InvariantInfo) + " (" + statusCode.ToString() + ")"); 716GlobalLog.Print("NTAuthentication#" + ValidationHelper.HashString(this) + "::GetOutgoingDigestBlob() SSPIWrapper.CompleteAuthToken() returns statusCode:0x" + ((int) statusCode).ToString("x8", NumberFormatInfo.InvariantInfo) + " (" + statusCode.ToString() + ")"); 732GlobalLog.Print("NTAuthentication#" + ValidationHelper.HashString(this) + "::GetOutgoingBlob() SSPIWrapper.AcceptSecurityContext() returns statusCode:0x" + ((int) statusCode).ToString("x8", NumberFormatInfo.InvariantInfo) + " (" + statusCode.ToString() + ")"); 756GlobalLog.Leave("NTAuthentication#" + ValidationHelper.HashString(this) + "::GetOutgoingBlob", "null statusCode:0x" + ((int) statusCode).ToString("x8", NumberFormatInfo.InvariantInfo) + " (" + statusCode.ToString() + ")"); 776GlobalLog.Print("NTAuthentication#" + ValidationHelper.HashString(this) + "::GetOutgoingBlob() need continue statusCode:[0x" + ((int) statusCode).ToString("x8", NumberFormatInfo.InvariantInfo) + "] (" + statusCode.ToString() + ") m_SecurityContext#" + ValidationHelper.HashString(m_SecurityContext) + "::Handle:" + ValidationHelper.ToString(m_SecurityContext) + "]"); 829GlobalLog.Print("NTAuthentication#" + ValidationHelper.HashString(this) + "::GetOutgoingDigestBlob() SSPIWrapper.InitializeSecurityContext() returns statusCode:0x" + ((int) statusCode).ToString("x8", NumberFormatInfo.InvariantInfo) + " (" + statusCode.ToString() + ")"); 876GlobalLog.Print("NTAuthentication#" + ValidationHelper.HashString(this) + "::GetOutgoingDigestBlob() SSPIWrapper.AcceptSecurityContext() returns statusCode:0x" + ((int)statusCode).ToString("x8", NumberFormatInfo.InvariantInfo) + " (" + statusCode.ToString() + ")"); 887GlobalLog.Print("NTAuthentication#" + ValidationHelper.HashString(this) + "::GetOutgoingDigestBlob() SSPIWrapper.CompleteAuthToken() returns statusCode:0x" + ((int)statusCode).ToString("x8", NumberFormatInfo.InvariantInfo) + " (" + statusCode.ToString() + ")"); 913GlobalLog.Leave("NTAuthentication#" + ValidationHelper.HashString(this) + "::GetOutgoingDigestBlob", "null statusCode:0x" + ((int) statusCode).ToString("x8", NumberFormatInfo.InvariantInfo) + " (" + statusCode.ToString() + ")"); 932GlobalLog.Print("NTAuthentication#" + ValidationHelper.HashString(this) + "::GetOutgoingDigestBlob() need continue statusCode:[0x" + ((int) statusCode).ToString("x8", NumberFormatInfo.InvariantInfo) + "] (" + statusCode.ToString() + ") m_SecurityContext#" + ValidationHelper.HashString(m_SecurityContext) + "::Handle:" + ValidationHelper.ToString(m_SecurityContext) + "]"); 996GlobalLog.Print("NTAuthentication#" + ValidationHelper.HashString(this) + "::Encrypt() throw Error = " + errorCode.ToString("x", NumberFormatInfo.InvariantInfo)); 1060GlobalLog.Print("NTAuthentication#" + ValidationHelper.HashString(this) + "::Decrypt() throw Error = " + errorCode.ToString("x", NumberFormatInfo.InvariantInfo)); 1113GlobalLog.Print("NTAuthentication#" + ValidationHelper.HashString(this) + "::Decrypt() throw Error = " + errorCode.ToString("x", NumberFormatInfo.InvariantInfo)); 1182NumberFormatInfo.InvariantInfo)); 1240errorCode.ToString("x", NumberFormatInfo.InvariantInfo));
net\System\Net\_SecureChannel.cs (2)
91GlobalLog.Enter("SecureChannel#" + ValidationHelper.HashString(this) + "::.ctor", "hostname:" + hostname + " #clientCertificates=" + ((clientCertificates == null) ? "0" : clientCertificates.Count.ToString(NumberFormatInfo.InvariantInfo))); 92if (Logging.On) Logging.PrintInfo(Logging.Web, this, ".ctor", "hostname=" + hostname + ", #clientCertificates=" + ((clientCertificates == null) ? "0" : clientCertificates.Count.ToString(NumberFormatInfo.InvariantInfo)) + ", encryptionPolicy=" + encryptionPolicy);
net\System\Net\_SSPIWrapper.cs (4)
705return "0x"+errorCode.ToString("x", NumberFormatInfo.InvariantInfo); 978+ " Version:" + Version.ToString(NumberFormatInfo.InvariantInfo) 979+ " RPCID:" + RPCID.ToString(NumberFormatInfo.InvariantInfo) 980+ " MaxToken:" + MaxToken.ToString(NumberFormatInfo.InvariantInfo)
net\System\Net\_StreamFramer.cs (6)
169m_CurReadHeader.MaxMessageSize.ToString(NumberFormatInfo.InvariantInfo), 170m_CurReadHeader.PayloadSize.ToString(NumberFormatInfo.InvariantInfo))); 288m_CurReadHeader.MaxMessageSize.ToString(NumberFormatInfo.InvariantInfo), 289payloadSize.ToString(NumberFormatInfo.InvariantInfo))); 616MaxMessageSize.ToString(NumberFormatInfo.InvariantInfo), 617value.ToString(NumberFormatInfo.InvariantInfo)), "PayloadSize");
net\System\Net\_TimerThread.cs (2)
576if (Logging.On) Logging.PrintError(Logging.Web, "TimerThreadTimer#" + StartTime.ToString(NumberFormatInfo.InvariantInfo) + "::Fire() - " + SR.GetString(SR.net_log_exception_in_callback, exception)); 734if (Logging.On) Logging.PrintError(Logging.Web, "TimerThread#" + Thread.CurrentThread.ManagedThreadId.ToString(NumberFormatInfo.InvariantInfo) + "::ThreadProc() - Exception:" + exception.ToString());
net\System\Net\_TLSstream.cs (2)
61GlobalLog.Enter("TlsStream::TlsStream", "host="+destinationHost+", #certs="+((clientCertificates == null) ? "none" : clientCertificates.Count.ToString(NumberFormatInfo.InvariantInfo))); 70(clientCertificates == null) ? "null" : clientCertificates.Count.ToString(NumberFormatInfo.InvariantInfo),
net\System\Net\Cache\_RequestCacheProtocol.cs (8)
146if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString()))); 230if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString()))); 258if(Logging.On) Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_closing_cache_stream, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), "Abort()", stream.GetType().FullName, _Validator.CacheKey)); 269if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_exception_ignored, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), "stream.Close()", e.ToString())); 386if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString()))); 441if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString()))); 542if(Logging.On) Logging.PrintError(Logging.RequestCache, SR.GetString(SR.net_log_cache_object_and_exception, "CacheProtocol#" + this.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), (e is WebException? e.Message: e.ToString()))); 655"Request#" + _Validator.Request.GetHashCode().ToString(NumberFormatInfo.InvariantInfo) +
net\System\Net\Cache\_Rfc2616CacheValidators.cs (19)
514if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age1_date_header, ((int)age.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo), ctx.CacheDate.ToString("r", CultureInfo.InvariantCulture))); 526Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age1_last_synchronized_age_header, ((int)age.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo), ctx.CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture), ((int)ctx.CacheAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo))); 528Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age1_last_synchronized, ((int)age.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo), ctx.CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture))); 536if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age2, ((int)ctx.CacheAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo))); 567if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_max_age_cache_s_max_age, ((int)ctx.CacheMaxAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo))); 581if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_max_age_cache_max_age, ((int)ctx.CacheMaxAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo))); 605if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_max_age_expires_date, ((int)((expiresDate - date).TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo), expiresDate.ToString("r", CultureInfo.InvariantCulture))); 649if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_no_max_age_use_10_percent, maxAgeSeconds.ToString(NumberFormatInfo.InvariantInfo), lastModifiedDate.ToString("r", CultureInfo.InvariantCulture))); 658if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_no_max_age_use_default, ((int)(ctx.UnspecifiedMaxAge.TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo))); 883if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age, (ctx.CacheAge != TimeSpan.MinValue ? ((int)ctx.CacheAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo) : SR.GetString(SR.net_log_unknown)), (ctx.CacheMaxAge != TimeSpan.MinValue? ((int)ctx.CacheMaxAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo): SR.GetString(SR.net_log_unknown)))); 887if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_policy_min_fresh, ((int)ctx.Policy.MinFresh.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo))); 893if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_policy_max_age, ((int)ctx.Policy.MaxAge.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo))); 908if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_policy_max_stale, ((int)ctx.Policy.MaxStale.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo))); 1142{ctx.CacheHeaders[HttpKnownHeaderNames.ContentLength] = ctx.CacheStreamLength.ToString(NumberFormatInfo.InvariantInfo);} 1709string ranges = "bytes " + rangeStart + '-' + (rangeStart + ctx.CacheStreamLength-1) +'/' + (ctx.CacheEntityLength <= 0?"*":ctx.CacheEntityLength.ToString(NumberFormatInfo.InvariantInfo)); 1711ctx.CacheHeaders[HttpKnownHeaderNames.ContentLength] = ctx.CacheStreamLength.ToString(NumberFormatInfo.InvariantInfo); 1728{ctx.CacheHeaders[HttpKnownHeaderNames.ContentLength] = ctx.CacheEntityLength.ToString(NumberFormatInfo.InvariantInfo);}
net\System\Net\Cache\FtpRequestCacheValidator.cs (3)
156if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_age1, ((int)age.TotalSeconds).ToString(NumberFormatInfo.InvariantInfo), CacheEntry.LastSynchronizedUtc.ToString("r", CultureInfo.InvariantCulture))); 166if(Logging.On)Logging.PrintInfo(Logging.RequestCache, SR.GetString(SR.net_log_cache_no_max_age_use_10_percent, maxAgeSeconds.ToString(NumberFormatInfo.InvariantInfo), CacheEntry.LastModifiedUtc.ToString("r", CultureInfo.InvariantCulture))); 174if(Logging.On)Logging.PrintWarning(Logging.RequestCache, SR.GetString(SR.net_log_cache_no_max_age_use_default, ((int)(UnspecifiedMaxAge.TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo)));
net\System\Net\Cache\HttpRequestCacheValidator.cs (3)
315CacheHeaders[HttpKnownHeaderNames.Age] = ((int)(CacheAge.TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo); 389CacheHeaders[HttpKnownHeaderNames.Age] = ((int)(CacheAge.TotalSeconds)).ToString(NumberFormatInfo.InvariantInfo); 500sb.Append(((int)CacheStatusCode).ToString(NumberFormatInfo.InvariantInfo));
net\System\Net\Cache\RequestCacheEntry.cs (3)
94sb.Append("\r\nMaxStale(sec) = ").Append(MaxStale == TimeSpan.MinValue? "": ((int)MaxStale.TotalSeconds).ToString(NumberFormatInfo.CurrentInfo)); 95sb.Append("\r\nHitCount = ").Append(HitCount.ToString(NumberFormatInfo.CurrentInfo)); 96sb.Append("\r\nUsageCount = ").Append(UsageCount.ToString(NumberFormatInfo.CurrentInfo));
net\System\Net\ConnectionPoolManager.cs (1)
45return hostName+"\r"+port.ToString(NumberFormatInfo.InvariantInfo)+"\r"+groupName;
net\System\Net\cookie.cs (3)
708+ m_version.ToString(NumberFormatInfo.InvariantInfo) + (IsQuotedVersion? "\"": string.Empty)); 798result += SeparatorLiteral + MaxAgeAttributeName + EqualsLiteral + seconds.ToString(NumberFormatInfo.InvariantInfo); 808result += SeparatorLiteral + VersionAttributeName + EqualsLiteral + m_version.ToString(NumberFormatInfo.InvariantInfo);
net\System\Net\cookiecontainer.cs (1)
886Cookie.MaxSupportedVersion.ToString(NumberFormatInfo.InvariantInfo)) : String.Empty;
net\System\Net\CredentialCache.cs (3)
469return "[" + Host.Length.ToString(NumberFormatInfo.InvariantInfo) + "]:" + Host + ":" + Port.ToString(NumberFormatInfo.InvariantInfo) + ":" + ValidationHelper.ToString(AuthenticationType); 563return "[" + UriPrefixLength.ToString(NumberFormatInfo.InvariantInfo) + "]:" + ValidationHelper.ToString(UriPrefix) + ":" + ValidationHelper.ToString(AuthenticationType);
net\System\Net\DNS.cs (1)
217"hostName", MaxHostName.ToString(NumberFormatInfo.CurrentInfo)));
net\System\Net\filewebresponse.cs (1)
58m_headers.AddInternal(HttpKnownHeaderNames.ContentLength, m_contentLength.ToString(NumberFormatInfo.InvariantInfo));
net\System\Net\HttpListenerResponse.cs (1)
667Headers.SetInternal(HttpResponseHeader.ContentLength, m_ContentLength.ToString("D", NumberFormatInfo.InvariantInfo));
net\System\Net\HttpWebRequest.cs (8)
5003_HttpRequestHeaders.ChangeInternal(HttpKnownHeaderNames.ContentLength, _ContentLength.ToString(NumberFormatInfo.InvariantInfo)); 5422connectionLine.Append(ClientCertificates.GetHashCode().ToString(NumberFormatInfo.InvariantInfo)); 5467+ baseObject.GetHashCode().ToString(NumberFormatInfo.InvariantInfo); 5806if(Logging.On)Logging.PrintWarning(Logging.Web, this, "", SR.GetString(SR.net_log_server_response_error_code, ((int)ResponseStatusCode).ToString(NumberFormatInfo.InvariantInfo))); 6245if (!AddRange(rangeSpecifier, from.ToString(NumberFormatInfo.InvariantInfo), to.ToString(NumberFormatInfo.InvariantInfo))) { 6261if (!AddRange(rangeSpecifier, range.ToString(NumberFormatInfo.InvariantInfo), (range >= 0) ? "" : null)) { 6299return (Interlocked.Increment(ref s_UniqueGroupId)).ToString(NumberFormatInfo.InvariantInfo);
net\System\Net\Internal.cs (2)
893return objectValue.GetHashCode().ToString(NumberFormatInfo.InvariantInfo); 1479GlobalLog.Assert(size >= 0, "SecurityBuffer::.ctor", "'size' out of range. [" + size.ToString(NumberFormatInfo.InvariantInfo) + "]");
net\System\Net\IPEndPoint.cs (1)
122return String.Format(format, m_Address.ToString(), Port.ToString(NumberFormatInfo.InvariantInfo));
net\System\Net\Logging.cs (4)
172maxDumpSize = Int32.Parse(traceSource.Attributes[AttributeNameMaxSize], NumberFormatInfo.InvariantInfo); 177traceSource.Attributes[AttributeNameMaxSize] = maxDumpSize.ToString(NumberFormatInfo.InvariantInfo); 595PrintLine(traceSource, TraceEventType.Verbose, 0, "(printing " + maxDumpSize.ToString(NumberFormatInfo.InvariantInfo) + " out of " + length.ToString(NumberFormatInfo.InvariantInfo) + ")");
net\System\Net\mail\smtpconnection.cs (1)
170connectionPool = ConnectionPoolManager.GetConnectionPool(servicePoint, ClientCertificates.GetHashCode().ToString(NumberFormatInfo.InvariantInfo), m_CreateConnectionCallback);
net\System\Net\SecureProtocols\_SslState.cs (2)
173targetHost = "?" + Interlocked.Increment(ref UniqueNameInteger).ToString(NumberFormatInfo.InvariantInfo); 515return new IOException(SR.GetString(SR.net_auth_ignored_reauth, _ConstMaxQueuedReadBytes.ToString(NumberFormatInfo.CurrentInfo)));
net\System\Net\SocketAddress.cs (2)
289bytes.Append(this[i].ToString(NumberFormatInfo.InvariantInfo)); 291return Family.ToString() + ":" + Size.ToString(NumberFormatInfo.InvariantInfo) + ":{" + bytes.ToString() + "}";
net\System\Net\SocketPermission.cs (6)
156port = Int32.Parse(m_port, NumberFormatInfo.InvariantInfo); 560port = Int32.Parse(tmpStr, NumberFormatInfo.InvariantInfo); 601permission.Port.ToString(NumberFormatInfo.InvariantInfo): "All"); 615permission.Port.ToString(NumberFormatInfo.InvariantInfo): "All"); 754throw new ArgumentOutOfRangeException("port", SR.GetString(SR.net_perm_invalid_val, "Port", port.ToString(NumberFormatInfo.InvariantInfo))); 1006return hostname + encSeperator + port + encSeperator + ((int)transport).ToString(NumberFormatInfo.InvariantInfo);
net\System\Net\Sockets\Socket.cs (3)
2605throw new ArgumentOutOfRangeException("checkRead", SR.GetString(SR.net_sockets_toolarge_select, "checkRead", MaxSelect.ToString(NumberFormatInfo.CurrentInfo))); 2608throw new ArgumentOutOfRangeException("checkWrite", SR.GetString(SR.net_sockets_toolarge_select, "checkWrite", MaxSelect.ToString(NumberFormatInfo.CurrentInfo))); 2611throw new ArgumentOutOfRangeException("checkError", SR.GetString(SR.net_sockets_toolarge_select, "checkError", MaxSelect.ToString(NumberFormatInfo.CurrentInfo)));
net\System\Net\webclient.cs (1)
624string boundary = "---------------------" + DateTime.Now.Ticks.ToString("x", NumberFormatInfo.InvariantInfo);
net\System\Net\WebHeaderCollection.cs (4)
1021string headerName = serializationInfo.GetString(i.ToString(NumberFormatInfo.InvariantInfo)); 1022string headerValue = serializationInfo.GetString((i+count).ToString(NumberFormatInfo.InvariantInfo)); 1047serializationInfo.AddValue(i.ToString(NumberFormatInfo.InvariantInfo), GetKey(i)); 1048serializationInfo.AddValue((i + Count).ToString(NumberFormatInfo.InvariantInfo), Get(i));
net\System\Net\WebSockets\WebSocketBuffer.cs (12)
62"'receiveBufferSize' MUST be at least " + MinReceiveBufferSize.ToString(NumberFormatInfo.InvariantInfo) + "."); 64"'sendBufferSize' MUST be at least " + MinSendBufferSize.ToString(NumberFormatInfo.InvariantInfo) + "."); 66"'receiveBufferSize' MUST NOT exceed " + MaxBufferSize.ToString(NumberFormatInfo.InvariantInfo) + "."); 68"'sendBufferSize' MUST NOT exceed " + MaxBufferSize.ToString(NumberFormatInfo.InvariantInfo) + "."); 660"'receiveBufferSize' MUST be at least " + MinReceiveBufferSize.ToString(NumberFormatInfo.InvariantInfo) + "."); 662"'sendBufferSize' MUST be at least " + MinSendBufferSize.ToString(NumberFormatInfo.InvariantInfo) + "."); 671"'receiveBufferSize' MUST be at least " + MinReceiveBufferSize.ToString(NumberFormatInfo.InvariantInfo) + "."); 673"'sendBufferSize' MUST be at least " + MinSendBufferSize.ToString(NumberFormatInfo.InvariantInfo) + "."); 686"'receiveBufferSize' MUST be at least " + MinReceiveBufferSize.ToString(NumberFormatInfo.InvariantInfo) + "."); 688"'sendBufferSize' MUST be at least " + MinSendBufferSize.ToString(NumberFormatInfo.InvariantInfo) + "."); 691"'receiveBufferSize' MUST be less than or equal to " + MaxBufferSize.ToString(NumberFormatInfo.InvariantInfo) + "."); 693"'sendBufferSize' MUST be at less than or equal to " + MaxBufferSize.ToString(NumberFormatInfo.InvariantInfo) + ".");
net\System\Net\WebUtility.cs (3)
138output.Write(valueToEncode.ToString(NumberFormatInfo.InvariantInfo)); 201parsedSuccessfully = UInt32.TryParse(entity.Substring(2), NumberStyles.AllowHexSpecifier, NumberFormatInfo.InvariantInfo, out parsedValue); 204parsedSuccessfully = UInt32.TryParse(entity.Substring(1), NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out parsedValue);
regex\system\text\regularexpressions\Regex.cs (1)
268String key = ((int) options).ToString(NumberFormatInfo.InvariantInfo) + ":" + cultureKey + ":" + pattern;
System.Activities (1)
System\Activities\Statements\MethodResolver.cs (1)
120if (int.TryParse(name.Substring(paramArrayBaseName.Length), NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out n))
System.Data (13)
fx\src\data\System\Data\Filter\ConstNode.cs (11)
36this.val = Convert.ToDouble(constant, NumberFormatInfo.InvariantInfo); 110if (Decimal.TryParse(sval, NumberStyles.Number, NumberFormatInfo.InvariantInfo, out r12)) { 115if (Double.TryParse(sval, NumberStyles.Float| NumberStyles.AllowThousands, NumberFormatInfo.InvariantInfo, out r8)) { 123return convertible.ToDecimal(NumberFormatInfo.InvariantInfo); 138return convertible.ToDouble(NumberFormatInfo.InvariantInfo); 166if (Int32.TryParse(sval, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out i4)) { 170if (Int64.TryParse(sval, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out i8)) { 174if (Double.TryParse(sval, NumberStyles.Float| NumberStyles.AllowThousands, NumberFormatInfo.InvariantInfo, out r8)) { 182return convertible.ToInt32(NumberFormatInfo.InvariantInfo); 198return convertible.ToInt64(NumberFormatInfo.InvariantInfo); 214return convertible.ToDouble(NumberFormatInfo.InvariantInfo);
fx\src\data\System\Data\SQLTypes\SQLMoney.cs (2)
279else if (Decimal.TryParse(s, SqlNumberStyle, NumberFormatInfo.InvariantInfo, out d)) { 283money = new SqlMoney(Decimal.Parse(s, NumberStyles.Currency, NumberFormatInfo.CurrentInfo));
System.Data.Entity (2)
System\Data\Common\EntitySql\CqlParserHelpers.cs (2)
34private string _version = YYMAJOR.ToString(NumberFormatInfo.InvariantInfo) + '.' + YYMINOR.ToString(NumberFormatInfo.InvariantInfo);
System.Data.Services (5)
System\Data\Services\DataService.cs (1)
2629if (!Int32.TryParse(contentIdValue, System.Globalization.NumberStyles.Integer, System.Globalization.NumberFormatInfo.InvariantInfo, out contentId))
System\Data\Services\Parsing\WebConvert.cs (1)
462if (Decimal.TryParse(text, NumberStyles.Float, NumberFormatInfo.InvariantInfo, out result))
System\Data\Services\Serializers\JsonReader.cs (3)
90if (long.TryParse(ticksStr, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out ticks)) 349if (Int32.TryParse(s, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out intValue)) 353else if (Double.TryParse(s, NumberStyles.Float, NumberFormatInfo.InvariantInfo, out doubleValue))
System.Data.Services.Client (1)
System\Data\Services\Client\DataServiceContext.cs (1)
5682!Int32.TryParse(contentValueID, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out contentID))
System.Data.SqlXml (14)
System\Xml\Xsl\Runtime\DecimalFormatter.cs (8)
16public NumberFormatInfo info; 21internal DecimalFormat(NumberFormatInfo info, char digit, char zeroDigit, char patternSeparator) { 30private NumberFormatInfo posFormatInfo; 31private NumberFormatInfo negFormatInfo; 50posFormatInfo = (NumberFormatInfo)decimalFormat.info.Clone(); 118negFormatInfo = (NumberFormatInfo)decimalFormat.info.Clone(); 171NumberFormatInfo formatInfo = sawPattern ? negFormatInfo : posFormatInfo; 202NumberFormatInfo formatInfo;
System\Xml\Xsl\Runtime\XsltLibrary.cs (1)
167NumberFormatInfo info = new NumberFormatInfo();
System\Xml\Xsl\Xslt\Scripts.cs (1)
375if (int.TryParse(fileName.Substring(idx + 1), NumberStyles.None, NumberFormatInfo.InvariantInfo, out scriptNumber))
System\Xml\Xsl\XsltOld\ContainerAction.cs (1)
313NumberFormatInfo info = new NumberFormatInfo();
System\Xml\Xsl\XsltOld\NumberAction.cs (1)
111NumberFormatInfo NumberFormat = new NumberFormatInfo();
System\Xml\Xsl\XsltOld\RootAction.cs (2)
198NumberFormatInfo info = exist.info; 199NumberFormatInfo newinfo = formatinfo.info;
System.Net (1)
net\Logging.cs (1)
163m_maxDataSize = Int32.Parse(Attributes[AttributeNameMaxDataSize], NumberFormatInfo.InvariantInfo);
System.Numerics (17)
System\Numerics\BigInteger.cs (10)
374return BigNumber.FormatBigInteger(this, null, NumberFormatInfo.CurrentInfo); 378return BigNumber.FormatBigInteger(this, null, NumberFormatInfo.GetInstance(provider)); 382return BigNumber.FormatBigInteger(this, format, NumberFormatInfo.CurrentInfo); 386return BigNumber.FormatBigInteger(this, format, NumberFormatInfo.GetInstance(provider)); 810return BigNumber.ParseBigInteger(value, NumberStyles.Integer, NumberFormatInfo.CurrentInfo); 814return BigNumber.ParseBigInteger(value, style, NumberFormatInfo.CurrentInfo); 818return BigNumber.ParseBigInteger(value, NumberStyles.Integer, NumberFormatInfo.GetInstance(provider)); 822return BigNumber.ParseBigInteger(value, style, NumberFormatInfo.GetInstance(provider)); 826return BigNumber.TryParseBigInteger(value, NumberStyles.Integer, NumberFormatInfo.CurrentInfo, out result); 830return BigNumber.TryParseBigInteger(value, style, NumberFormatInfo.GetInstance(provider), out result);
System\Numerics\BigNumber.cs (4)
322internal unsafe static Boolean TryParseBigInteger(String value, NumberStyles style, NumberFormatInfo info, out BigInteger result) { 353internal unsafe static BigInteger ParseBigInteger(String value, NumberStyles style, NumberFormatInfo info) { 465private static String FormatBigIntegerToHexString(BigInteger value, char format, int digits, NumberFormatInfo info) { 512static String FormatBigInteger(BigInteger value, String format, NumberFormatInfo info) {
System\Numerics\Vector2.cs (1)
88string separator = NumberFormatInfo.GetInstance(formatProvider).NumberGroupSeparator;
System\Numerics\Vector3.cs (1)
94string separator = NumberFormatInfo.GetInstance(formatProvider).NumberGroupSeparator;
System\Numerics\Vector4.cs (1)
98string separator = NumberFormatInfo.GetInstance(formatProvider).NumberGroupSeparator;
System.Runtime.Serialization (53)
System\Runtime\Serialization\CodeExporter.cs (5)
434string uniqueName = AppendToValidClrIdentifier(typeName, i.ToString(NumberFormatInfo.InvariantInfo)); 492string uniqueName = AppendToValidClrIdentifier(nestedTypeName, i.ToString(NumberFormatInfo.InvariantInfo)); 1365uniqueMemberName = AppendToValidClrIdentifier(memberName, i.ToString(NumberFormatInfo.InvariantInfo)); 1448uniqueNamespace = ((clrNamespace.Length == 0) ? Globals.DefaultClrNamespace : clrNamespace) + i.ToString(NumberFormatInfo.InvariantInfo); 1570string uniquifier = i.ToString(NumberFormatInfo.InvariantInfo);
System\Runtime\Serialization\CodeGenerator.cs (3)
508EmitSourceInstruction("Branch if " + GetCmpInverse(cmpOp).ToString() + " to " + ifState.ElseBegin.GetHashCode().ToString(NumberFormatInfo.InvariantInfo)); 541EmitSourceInstruction("Branch if " + GetCmpInverse(cmpOp).ToString() + " to " + ifState.ElseBegin.GetHashCode().ToString(NumberFormatInfo.InvariantInfo)); 1919EmitSourceInstruction("Branch if " + GetCmpInverse(Cmp.EqualTo).ToString() + " to " + ifState.ElseBegin.GetHashCode().ToString(NumberFormatInfo.InvariantInfo));
System\Runtime\Serialization\ExtensionDataObject.cs (1)
283element.AddAttribute(Globals.SerPrefix, Globals.SerializationNamespace, Globals.ArraySizeLocalName, Size.ToString(NumberFormatInfo.InvariantInfo));
System\Runtime\Serialization\ExtensionDataReader.cs (1)
536nextElement.AddAttribute(Globals.SerPrefix, Globals.SerializationNamespace, Globals.RefLocalName, node.Id.ToString(NumberFormatInfo.InvariantInfo));
System\Runtime\Serialization\Json\ByteArrayHelperWithString.cs (1)
55ThrowConversionException(value.ToString(System.Globalization.NumberFormatInfo.CurrentInfo), "Byte");
System\Runtime\Serialization\Json\JsonObjectDataContract.cs (3)
74if (Int32.TryParse(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo, out intValue)) 81if (Int64.TryParse(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo, out longValue)) 89if (Decimal.TryParse(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo, out decimalValue))
System\Runtime\Serialization\Json\JsonReaderDelegator.cs (2)
316return ulong.Parse(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo); 354return ulong.Parse(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo);
System\Runtime\Serialization\Json\XmlJsonReader.cs (3)
693return decimal.Parse(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo); 719return long.Parse(value, NumberStyles.Float, NumberFormatInfo.InvariantInfo); 1018return int.Parse(value, style, NumberFormatInfo.InvariantInfo);
System\Runtime\Serialization\SchemaImporter.cs (1)
377typeQName = new XmlQualifiedName(typeQName.Name + i.ToString(NumberFormatInfo.InvariantInfo), typeQName.Namespace);
System\Runtime\Serialization\XmlReaderDelegator.cs (6)
372ThrowConversionException(value.ToString(NumberFormatInfo.CurrentInfo), "Char"); 580ThrowConversionException(value.ToString(NumberFormatInfo.CurrentInfo), "Int16"); 599ThrowConversionException(value.ToString(NumberFormatInfo.CurrentInfo), "Byte"); 621ThrowConversionException(value.ToString(NumberFormatInfo.CurrentInfo), "SByte"); 643ThrowConversionException(value.ToString(NumberFormatInfo.CurrentInfo), "UInt32"); 693ThrowConversionException(value.ToString(NumberFormatInfo.CurrentInfo), "UInt16");
System\Runtime\Serialization\XPathQueryGenerator.cs (1)
143prefix = "xg" + (this.nextPrefix++).ToString(NumberFormatInfo.InvariantInfo);
System\Text\Base64Encoding.cs (4)
40throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.XmlInvalidBase64Length, charCount.ToString(NumberFormatInfo.CurrentInfo)))); 75throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.XmlInvalidBase64Length, count.ToString(NumberFormatInfo.CurrentInfo)))); 141throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.XmlInvalidBase64Length, charCount.ToString(NumberFormatInfo.CurrentInfo)))); 222throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.XmlInvalidBase64Length, charCount.ToString(NumberFormatInfo.CurrentInfo))));
System\Text\BinHexEncoding.cs (1)
52throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new FormatException(SR.GetString(SR.XmlInvalidBinHexLength, charCount.ToString(NumberFormatInfo.CurrentInfo))));
System\Xml\XmlConverter.cs (6)
343return ulong.Parse(value, NumberFormatInfo.InvariantInfo); 422static public string ToString(UInt64 value) { return value.ToString(NumberFormatInfo.InvariantInfo); } 1007return ToAsciiChars(value.ToString("R", NumberFormatInfo.InvariantInfo), buffer, offset); 1016return ToAsciiChars(value.ToString("R", NumberFormatInfo.InvariantInfo), buffer, offset); 1021return ToAsciiChars(value.ToString(null, NumberFormatInfo.InvariantInfo), buffer, offset); 1026return ToAsciiChars(value.ToString(null, NumberFormatInfo.InvariantInfo), buffer, offset);
System\Xml\XmlDictionaryReader.cs (2)
865value = DateTime.Parse(string.Empty, NumberFormatInfo.InvariantInfo); 1110XmlExceptionHelper.ThrowConversionOverflow(this, i.ToString(NumberFormatInfo.CurrentInfo), "Int16");
System\Xml\XmlDictionaryWriter.cs (3)
149prefix = namespaceUri.Length == 0 ? string.Empty : string.Concat("d", namespaceUri.Length.ToString(System.Globalization.NumberFormatInfo.InvariantInfo)); 1386string depthStr = this.depth.ToString(System.Globalization.NumberFormatInfo.InvariantInfo); 1387string prefixStr = this.prefix.ToString(System.Globalization.NumberFormatInfo.InvariantInfo);
System\Xml\XmlExceptionHelper.cs (10)
133ThrowXmlException(reader, SR.XmlMaxStringContentLengthExceeded, maxStringContentLength.ToString(NumberFormatInfo.CurrentInfo)); 138ThrowXmlException(reader, SR.XmlMaxArrayLengthExceeded, maxArrayLength.ToString(NumberFormatInfo.CurrentInfo)); 143ThrowXmlException(reader, SR.XmlMaxArrayLengthOrMaxItemsQuotaExceeded, maxQuota.ToString(NumberFormatInfo.CurrentInfo)); 148ThrowXmlException(reader, SR.XmlMaxDepthExceeded, maxDepth.ToString(NumberFormatInfo.CurrentInfo)); 153ThrowXmlException(reader, SR.XmlMaxBytesPerReadExceeded, maxBytesPerRead.ToString(NumberFormatInfo.CurrentInfo)); 158ThrowXmlException(reader, SR.XmlMaxNameTableCharCountExceeded, maxNameTableCharCount.ToString(NumberFormatInfo.CurrentInfo)); 253ThrowXmlException(reader, SR.XmlDictionaryStringIDRange, XmlDictionaryString.MinKey.ToString(NumberFormatInfo.CurrentInfo), XmlDictionaryString.MaxKey.ToString(NumberFormatInfo.CurrentInfo)); 258ThrowXmlException(reader, SR.XmlDictionaryStringIDUndefinedStatic, key.ToString(NumberFormatInfo.CurrentInfo)); 263ThrowXmlException(reader, SR.XmlDictionaryStringIDUndefinedSession, key.ToString(NumberFormatInfo.CurrentInfo));
System.ServiceModel (23)
System\ServiceModel\Channels\BaseUriWithWildcard.cs (1)
63!int.TryParse(portString, NumberStyles.Integer, NumberFormatInfo.InvariantInfo, out port))
System\ServiceModel\Channels\CorrelationKey.cs (5)
116checksum.Append(sortedKeyData.Count.ToString(NumberFormatInfo.InvariantInfo)); 129checksum.Append(sortedKeyData.Keys[i].Length.ToString(NumberFormatInfo.InvariantInfo)); 131checksum.Append(sortedKeyData.Values[i].Length.ToString(NumberFormatInfo.InvariantInfo)); 144checksum.Append(scopeName.Length.ToString(NumberFormatInfo.InvariantInfo)); 146checksum.Append(provider.Length.ToString(NumberFormatInfo.InvariantInfo));
System\ServiceModel\ComIntegration\TypeCacheManager.cs (3)
121major = ushort.Parse(version, numberStyle, NumberFormatInfo.InvariantInfo); 126major = ushort.Parse(version.Substring(0, indexOfDot), numberStyle, NumberFormatInfo.InvariantInfo); 133minor = ushort.Parse(minorVersion, numberStyle, NumberFormatInfo.InvariantInfo);
System\ServiceModel\Configuration\ServiceModelEnhancedConfigurationElementCollection.cs (2)
50values.Add("OldElementLineNumber", oldElement.ElementInformation.LineNumber.ToString(NumberFormatInfo.CurrentInfo)); 52values.Add("NewElementLineNumber", element.ElementInformation.LineNumber.ToString(NumberFormatInfo.CurrentInfo));
System\ServiceModel\Configuration\XPathMessageFilterElement.cs (1)
110writer.WriteAttributeString(ConfigurationStrings.NodeQuota, Filter.NodeQuota.ToString(NumberFormatInfo.CurrentInfo));
System\ServiceModel\Diagnostics\SecurityTraceRecordHelper.cs (3)
981xml.WriteElementString("Capacity", this.capacity.ToString(NumberFormatInfo.InvariantInfo)); 982xml.WriteElementString("PruningAmount", this.pruningAmount.ToString(NumberFormatInfo.InvariantInfo)); 1297xml.WriteElementString("CacheSize", this.cacheSize.ToString(NumberFormatInfo.InvariantInfo));
System\ServiceModel\Dispatcher\QueryModel.cs (1)
577NumberFormatInfo.InvariantInfo,
System\ServiceModel\Dispatcher\XPathMessageFilter.cs (3)
528int quota = quotaString == null ? int.MaxValue : int.Parse(quotaString, NumberFormatInfo.InvariantInfo); 615writer.WriteAttributeString(NodeQuotaAttr, this.NodeQuota.ToString(NumberFormatInfo.InvariantInfo)); 659newPrefix = newPrefix + i.ToString(NumberFormatInfo.InvariantInfo);
System\ServiceModel\Security\IssuanceTokenProviderBase.cs (1)
314long effectiveTicksInterval = Convert.ToInt64((double)this.ServiceTokenValidityThresholdPercentage / 100.0 * (double)serviceTokenTicksInterval, NumberFormatInfo.InvariantInfo);
System\ServiceModel\Security\WSTrust.cs (3)
270keySize = Int32.Parse(XmlHelper.ReadTextElementAsTrimmedString(child), NumberFormatInfo.InvariantInfo); 364keySize = Int32.Parse(XmlHelper.ReadTextElementAsTrimmedString(child), NumberFormatInfo.InvariantInfo); 1281keySize = Int32.Parse(XmlHelper.ReadTextElementAsTrimmedString(element), NumberFormatInfo.InvariantInfo);
System.ServiceModel.Activation (5)
System\ServiceModel\Activation\MetabaseReader.cs (4)
158record.dwMDDataType.ToString(NumberFormatInfo.CurrentInfo), 159record.dwMDIdentifier.ToString(NumberFormatInfo.CurrentInfo)))); 173SR.Hosting_MetabaseDataStringsTerminate(record.dwMDIdentifier.ToString(NumberFormatInfo.CurrentInfo)))); 190SR.Hosting_MetabaseDataStringsTerminate(record.dwMDIdentifier.ToString(NumberFormatInfo.CurrentInfo))));
System\ServiceModel\Activation\MetabaseSettings.cs (1)
167string binding = string.Format(CultureInfo.InvariantCulture, ":{0}:{1}", result.OriginalRequestUri.Port.ToString(NumberFormatInfo.InvariantInfo), MetabaseSettings.LocalMachine);
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\HelpExampleGenerator.cs (1)
245prefix = string.Concat("d", context.currentDepthLevel.ToString(System.Globalization.NumberFormatInfo.InvariantInfo));
System.Web (83)
Cache\CacheDependency.cs (1)
747sb.Append(fad.UtcLastWriteTime.Ticks.ToString("d", NumberFormatInfo.InvariantInfo));
Compilation\BaseTemplateCodeDomTreeGenerator.cs (1)
1604builder.ID = "__control" + _controlCount.ToString(NumberFormatInfo.InvariantInfo);
Compilation\PageThemeCodeDomTreeGenerator.cs (1)
202builder.ID = "__control" + _controlCount.ToString(NumberFormatInfo.InvariantInfo);
Configuration\HttpCapabilitiesBase.cs (3)
533NumberFormatInfo.InvariantInfo); 552NumberFormatInfo.InvariantInfo); 856NumberFormatInfo.InvariantInfo);
FileChangesMonitor.cs (7)
181Debug.Trace("GetDacl", "Error in first call to GetFileSecurity: 0x" + hr.ToString("x", NumberFormatInfo.InvariantInfo)); 420Debug.Trace("FileChangesMonitor", "DirMonCompletion::ctor " + dir + " " + watchSubtree.ToString() + " " + notifyFilter.ToString(NumberFormatInfo.InvariantInfo)); 1325"\n\tArgs: Action=" + nqi.Action + "; fileName=" + nqi.Filename + "; Target=" + nqi.Callback.Target + "(HC=" + nqi.Callback.Target.GetHashCode().ToString("x", NumberFormatInfo.InvariantInfo) + ")"); 1671Debug.Trace("FileChangesMonitor", "StartMonitoringFile\n" + "\tArgs: File=" + alias + "; Callback=" + callback.Target + "(HC=" + callback.Target.GetHashCode().ToString("x", NumberFormatInfo.InvariantInfo) + ")"); 1764Debug.Trace("FileChangesMonitor", "StartMonitoringPath\n" + "\tArgs: File=" + alias + "; Callback=" + callback.Target + "(HC=" + callback.Target.GetHashCode().ToString("x", NumberFormatInfo.InvariantInfo) + ")"); 1897Debug.Trace("FileChangesMonitor", "StartMonitoringDirectoryRenamesAndBinDirectory\n" + "\tArgs: File=" + dir + "; Callback=" + callback.Target + "(HC=" + callback.Target.GetHashCode().ToString("x", NumberFormatInfo.InvariantInfo) + ")"); 2052Debug.Trace("FileChangesMonitor", "Firing subdir change event\n" + "\tArgs: Action=" + e.Action + "; fileName=" + e.FileName + "; Target=" + handler.Target + "(HC=" + handler.Target.GetHashCode().ToString("x", NumberFormatInfo.InvariantInfo) + ")");
Handlers\TraceHandler.cs (5)
262tcell = AddHeaderCell(trow, SR.GetString(SR.Trace_Remaining) + " " + HttpRuntime.Profile.RequestsRemaining.ToString(NumberFormatInfo.InvariantInfo)); 287AddCell(trow, (i + 1).ToString(NumberFormatInfo.InvariantInfo)); 400AddCell(trow, ((int) size).ToString(NumberFormatInfo.InvariantInfo)); 406AddCell(trow, ((int) size).ToString(NumberFormatInfo.InvariantInfo)); 412AddCell(trow, ((int) size).ToString(NumberFormatInfo.InvariantInfo));
Hosting\ApplicationManager.cs (1)
1712return id + "-" + domainCount.ToString(NumberFormatInfo.InvariantInfo) + "-" + DateTime.UtcNow.ToFileTime().ToString();
HttpResponse.cs (1)
3035return this.StatusCode.ToString(NumberFormatInfo.InvariantInfo) + " " + this.StatusDescription;
httpserverutility.cs (1)
1235output.Write(((int)ch).ToString(NumberFormatInfo.InvariantInfo));
Security\ADMembershipProvider.cs (3)
1932sidHexValueStr.Append(sidBinaryForm[i].ToString("x2", NumberFormatInfo.InvariantInfo)); 2621dcLevel = Int32.Parse(dcLevelString, NumberFormatInfo.InvariantInfo); 3543port = Int32.Parse(tempStr.Substring(index + 1), NumberFormatInfo.InvariantInfo);
StaticFileHandler.cs (1)
576response.AppendHeader("Content-Range", "bytes */" + fileLength.ToString(NumberFormatInfo.InvariantInfo));
UI\Control.cs (2)
1657_id = automaticLegacyIDPrefix + idNo.ToString(NumberFormatInfo.InvariantInfo); 1664_id = automaticIDPrefix + idNo.ToString(NumberFormatInfo.InvariantInfo);
UI\HtmlControls\HtmlControl.cs (1)
290return n.ToString(NumberFormatInfo.InvariantInfo);
UI\HtmlControls\HtmlHead.cs (1)
366string name = "aspnet_s" + index.ToString(NumberFormatInfo.InvariantInfo);
UI\Page.cs (2)
2063int viewhash = Int32.Parse(hashCode, NumberFormatInfo.InvariantInfo); 5513Pair allSavedViewState = new Pair(GetTypeHashCode().ToString(NumberFormatInfo.InvariantInfo), SaveViewStateRecursive(inheritedMode));
UI\TemplateParser.cs (1)
1572_id = "_ctrl_" + _controlCount.ToString(NumberFormatInfo.InvariantInfo);
UI\WebControls\basecomparevalidator.cs (13)
85NumberFormatInfo info = NumberFormatInfo.CurrentInfo; 101AddExpandoAttribute(expandoAttributeWriter, id, "digits", digits.ToString(NumberFormatInfo.InvariantInfo), false); 106AddExpandoAttribute(expandoAttributeWriter, id, "groupsize", groupSize.ToString(NumberFormatInfo.InvariantInfo), false); 111AddExpandoAttribute(expandoAttributeWriter, id, "cutoffyear", CutoffYear.ToString(NumberFormatInfo.InvariantInfo), false); 118AddExpandoAttribute(expandoAttributeWriter, id, "century", century.ToString(NumberFormatInfo.InvariantInfo), false); 159private static int GetCurrencyGroupSize(NumberFormatInfo info) { 216cleanInput = ConvertDouble(text, NumberFormatInfo.CurrentInfo); 248cleanInput = ConvertCurrency(text, NumberFormatInfo.CurrentInfo); 264private static string ConvertCurrency(string text, NumberFormatInfo info) { 272string groupSizeText = groupSize.ToString(NumberFormatInfo.InvariantInfo); 287+ (hasDigits ? "\\" + decimalChar + "?(\\d{0," + digits.ToString(NumberFormatInfo.InvariantInfo) + "})" : string.Empty) 305private static string ConvertDouble(string text, NumberFormatInfo info) {
UI\WebControls\CheckBox.cs (1)
570writer.AddAttribute(HtmlTextWriterAttribute.Tabindex, i.ToString(NumberFormatInfo.InvariantInfo));
UI\WebControls\DataGrid.cs (3)
1382button.CommandArgument = (firstPage - 1).ToString(NumberFormatInfo.InvariantInfo); 1390string pageString = (i).ToString(NumberFormatInfo.InvariantInfo); 1419button.CommandArgument = (lastPage + 1).ToString(NumberFormatInfo.InvariantInfo);
UI\WebControls\DetailsView.cs (3)
2021button.CommandArgument = (firstPage - 1).ToString(NumberFormatInfo.InvariantInfo); 2030string pageString = (i).ToString(NumberFormatInfo.InvariantInfo); 2054button.CommandArgument = (lastPage + 1).ToString(NumberFormatInfo.InvariantInfo);
UI\WebControls\FormView.cs (3)
1719button.CommandArgument = (firstPage - 1).ToString(NumberFormatInfo.InvariantInfo); 1727string pageString = (i).ToString(NumberFormatInfo.InvariantInfo); 1750button.CommandArgument = (lastPage + 1).ToString(NumberFormatInfo.InvariantInfo);
UI\WebControls\GridView.cs (3)
2583button.CommandArgument = (firstPage - 1).ToString(NumberFormatInfo.InvariantInfo); 2592string pageString = (i).ToString(NumberFormatInfo.InvariantInfo); 2617button.CommandArgument = (lastPage + 1).ToString(NumberFormatInfo.InvariantInfo);
UI\WebControls\ImageMap.cs (1)
242writer.AddAttribute(HtmlTextWriterAttribute.Tabindex, n.ToString(NumberFormatInfo.InvariantInfo));
UI\WebControls\Listbox.cs (1)
139Rows.ToString(NumberFormatInfo.InvariantInfo));
UI\WebControls\ListControl.cs (1)
851string idSuffix = index.ToString(NumberFormatInfo.InvariantInfo);
UI\WebControls\MenuRendererClassic.cs (1)
206string name = Menu.ClientID + "_" + _cssStyleIndex++.ToString(NumberFormatInfo.InvariantInfo);
UI\WebControls\RadioButton.cs (1)
250writer.AddAttribute(HtmlTextWriterAttribute.Tabindex, i.ToString(NumberFormatInfo.InvariantInfo));
UI\WebControls\RepeatInfo.cs (4)
203writer.AddAttribute(HtmlTextWriterAttribute.Colspan, columnSpan.ToString(NumberFormatInfo.InvariantInfo)); 321writer.AddAttribute(HtmlTextWriterAttribute.Colspan, columnSpan.ToString(NumberFormatInfo.InvariantInfo)); 453writer.AddAttribute(HtmlTextWriterAttribute.Colspan, columnSpan.ToString(NumberFormatInfo.InvariantInfo)); 637writer.AddAttribute(HtmlTextWriterAttribute.Colspan, columnSpan.ToString(NumberFormatInfo.InvariantInfo));
UI\WebControls\Table.cs (1)
253borderWidthString = ((int)borderWidth.Value).ToString(NumberFormatInfo.InvariantInfo);
UI\WebControls\TableCell.cs (2)
246writer.AddAttribute(HtmlTextWriterAttribute.Colspan, span.ToString(NumberFormatInfo.InvariantInfo)); 250writer.AddAttribute(HtmlTextWriterAttribute.Rowspan, span.ToString(NumberFormatInfo.InvariantInfo));
UI\WebControls\TableStyle.cs (2)
190writer.AddAttribute(HtmlTextWriterAttribute.Cellspacing, n.ToString(NumberFormatInfo.InvariantInfo)); 198writer.AddAttribute(HtmlTextWriterAttribute.Cellpadding, n.ToString(NumberFormatInfo.InvariantInfo));
UI\WebControls\TextBox.cs (5)
412writer.AddAttribute(HtmlTextWriterAttribute.Rows, rows.ToString(NumberFormatInfo.InvariantInfo)); 416writer.AddAttribute(HtmlTextWriterAttribute.Cols, columns.ToString(NumberFormatInfo.InvariantInfo)); 425writer.AddAttribute(HtmlTextWriterAttribute.Maxlength, MaxLength.ToString(NumberFormatInfo.InvariantInfo)); 473writer.AddAttribute(HtmlTextWriterAttribute.Maxlength, n.ToString(NumberFormatInfo.InvariantInfo)); 477writer.AddAttribute(HtmlTextWriterAttribute.Size, n.ToString(NumberFormatInfo.InvariantInfo));
UI\WebControls\TreeView.cs (1)
2820string name = ClientID + "_" + _cssStyleIndex++.ToString(NumberFormatInfo.InvariantInfo);
UI\WebControls\WebControl.cs (1)
616writer.AddAttribute(HtmlTextWriterAttribute.Tabindex, n.ToString(NumberFormatInfo.InvariantInfo));
UI\WebControls\Wizard.cs (1)
1445button.CommandArgument = index.ToString(NumberFormatInfo.InvariantInfo);
UI\WebParts\WebPartChrome.cs (1)
253string name = Zone.ClientID + "_" + _cssStyleIndex++.ToString(NumberFormatInfo.InvariantInfo);
UI\WebParts\WebPartMenu.cs (1)
98string name = _menuUser.ClientID + "__Menu_" + _cssStyleIndex++.ToString(NumberFormatInfo.InvariantInfo);
WorkerRequest.cs (1)
461return GetLocalPort().ToString(NumberFormatInfo.InvariantInfo);
System.Web.Extensions (3)
Globalization\ClientCultureInfo.cs (1)
26public NumberFormatInfo numberFormat;
Script\Services\WebServiceTypeData.cs (2)
312value = (long)ulong.Parse(valueInnerText, NumberFormatInfo.InvariantInfo); 315value = long.Parse(valueInnerText, NumberFormatInfo.InvariantInfo);
System.Web.Services (1)
System\Web\Services\Diagnostics\TraceUtility.cs (1)
400return objectValue.GetHashCode().ToString(NumberFormatInfo.InvariantInfo);
System.Windows.Forms (2)
winforms\Managed\System\WinForms\DataGridViewCell.cs (1)
1526output.Write(((int)ch).ToString(NumberFormatInfo.InvariantInfo));
winforms\Managed\System\WinForms\NumericUpDown.cs (1)
524NumberFormatInfo numberFormatInfo = System.Globalization.CultureInfo.CurrentCulture.NumberFormat;
System.Workflow.Runtime (4)
Tracking\SqlTrackingService.cs (1)
164_interval = double.Parse(parameters[key], NumberFormatInfo.InvariantInfo);
Tracking\TrackingProfileSerializer.cs (3)
895version = string.Format(NumberFormatInfo.InvariantInfo, "{0}.{1}.{2}.{3}", profile.Version.Major, profile.Version.Minor, profile.Version.Build, profile.Version.Revision); 897version = string.Format(NumberFormatInfo.InvariantInfo, "{0}.{1}.{2}", profile.Version.Major, profile.Version.Minor, profile.Version.Build); 899version = string.Format(NumberFormatInfo.InvariantInfo, "{0}.{1}", profile.Version.Major, profile.Version.Minor);
System.Xml (91)
System\Xml\Core\XmlEncodedRawTextWriter.cs (3)
537string strVal = ((int)ch).ToString( "X", NumberFormatInfo.InvariantInfo ); 603RawText( surrogateChar.ToString( "X", NumberFormatInfo.InvariantInfo ) ); 1538string s = ((int)ch).ToString( "X",NumberFormatInfo.InvariantInfo );
System\Xml\Core\XmlEncodedRawTextWriterAsync.cs (2)
359string strVal = ((int)ch).ToString( "X", NumberFormatInfo.InvariantInfo ); 422await RawTextAsync( surrogateChar.ToString( "X", NumberFormatInfo.InvariantInfo ) ).ConfigureAwait(false);
System\Xml\Core\XmlTextEncoder.cs (3)
217textWriter.Write( surrogateChar.ToString( "X", NumberFormatInfo.InvariantInfo ) ); 428string strVal = ((int)ch).ToString( "X", NumberFormatInfo.InvariantInfo ); 473WriteCharEntityImpl( ((int)ch).ToString( "X", NumberFormatInfo.InvariantInfo ) );
System\Xml\Core\XmlUtf8RawTextWriter.cs (3)
473string strVal = ((int)ch).ToString( "X", NumberFormatInfo.InvariantInfo ); 535RawText( surrogateChar.ToString( "X", NumberFormatInfo.InvariantInfo ) ); 1438string s = ((int)ch).ToString( "X",NumberFormatInfo.InvariantInfo );
System\Xml\Core\XmlUtf8RawTextWriterAsync.cs (2)
337string strVal = ((int)ch).ToString( "X", NumberFormatInfo.InvariantInfo ); 396await RawTextAsync( surrogateChar.ToString( "X", NumberFormatInfo.InvariantInfo ) ).ConfigureAwait(false);
System\Xml\Schema\ConstraintStruct.cs (2)
254this.dstruct.Dvalue[i] = Convert.ToDecimal (((Array) this.ovalue).GetValue(i),NumberFormatInfo.InvariantInfo); 260this.dstruct.Dvalue[0] = Convert.ToDecimal (this.ovalue, NumberFormatInfo.InvariantInfo);
System\Xml\Schema\SchemaSetCompiler.cs (24)
1238restrictionErrorMsg = Res.GetString(Res.Sch_SeqFromAll, derivedParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1264restrictionErrorMsg = Res.GetString(Res.Sch_SeqFromChoice, derivedParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseParticle.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1351restrictionErrorMsg = Res.GetString(Res.Sch_GroupBaseFromAny2, derivedGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseAny.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseAny.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1421restrictionErrorMsg = Res.GetString(Res.Sch_ElementFromGroupBase1, derivedElement.QualifiedName.ToString(), derivedElement.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedElement.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1431restrictionErrorMsg = Res.GetString(Res.Sch_ElementFromGroupBase2, derivedElement.QualifiedName.ToString(), derivedElement.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedElement.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo)); 1441restrictionErrorMsg = Res.GetString(Res.Sch_ElementFromGroupBase3, derivedElement.QualifiedName.ToString(), derivedElement.LineNumber.ToString(NumberFormatInfo.InvariantInfo), derivedElement.LinePosition.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LineNumber.ToString(NumberFormatInfo.InvariantInfo), baseGroupBase.LinePosition.ToString(NumberFormatInfo.InvariantInfo));
System\Xml\Schema\XdrBuilder.cs (1)
1473return UInt32.TryParse(str,NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out n);
System\Xml\Serialization\XmlCodeExporter.cs (3)
235valueExpression = new CodePrimitiveExpression(Convert.ToString(value, NumberFormatInfo.InvariantInfo)); 248valueExpression = new CodePrimitiveExpression(Convert.ToString(value, NumberFormatInfo.InvariantInfo)); 275valueExpression = new CodePrimitiveExpression(Convert.ToString(value, NumberFormatInfo.InvariantInfo));
System\Xml\Serialization\XmlSerializationWriter.cs (7)
1829return "Write" + (++NextMethodNumber).ToString(null, NumberFormatInfo.InvariantInfo) + "_" + CodeIdentifier.MakeValidInternal(name); 3081Writer.Write(((Int32)value).ToString(null, NumberFormatInfo.InvariantInfo)); 3084Writer.Write(((Double)value).ToString("R", NumberFormatInfo.InvariantInfo)); 3100Writer.Write(Convert.ToString(value, NumberFormatInfo.InvariantInfo)); 3104Writer.Write(((Single)value).ToString("R", NumberFormatInfo.InvariantInfo)); 3108Writer.Write(((Decimal)value).ToString(null, NumberFormatInfo.InvariantInfo)); 3120Writer.Write(((int)value).ToString(null, NumberFormatInfo.InvariantInfo));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (1)
551return "Write" + (++NextMethodNumber).ToString(null, NumberFormatInfo.InvariantInfo) + "_" + CodeIdentifier.MakeValidInternal(name);
System\Xml\XmlConvert.cs (39)
645return value.ToString(null, NumberFormatInfo.InvariantInfo); 654return value.ToString(null, NumberFormatInfo.InvariantInfo); 662return value.ToString(null, NumberFormatInfo.InvariantInfo); 670return value.ToString(null, NumberFormatInfo.InvariantInfo); 678return value.ToString(null, NumberFormatInfo.InvariantInfo); 686return value.ToString(null, NumberFormatInfo.InvariantInfo); 695return value.ToString(null, NumberFormatInfo.InvariantInfo); 704return value.ToString(null, NumberFormatInfo.InvariantInfo); 713return value.ToString(null, NumberFormatInfo.InvariantInfo); 726return value.ToString("R", NumberFormatInfo.InvariantInfo); 739return value.ToString("R", NumberFormatInfo.InvariantInfo); 868return Decimal.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 873if (!Decimal.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 880return Decimal.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 884if (!Decimal.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 896return SByte.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 901if (!SByte.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 913return Int16.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 918if (!Int16.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 930return Int32.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 935if (!Int32.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 947return Int64.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 952if (!Int64.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 964return Byte.Parse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 969if (!Byte.TryParse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 982return UInt16.Parse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 987if (!UInt16.TryParse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 1000return UInt32.Parse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 1006if (!UInt32.TryParse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 1019return UInt64.Parse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 1024if (!UInt64.TryParse(s, NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out result)) { 1039float f = Single.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo); 1057else if (!Single.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo, out result)) { 1075double dVal = Double.Parse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowExponent|NumberStyles.AllowLeadingWhite|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo); 1093else if (!Double.TryParse(s, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowExponent, NumberFormatInfo.InvariantInfo, out result)) { 1110if (Double.TryParse(str, NumberStyles.AllowLeadingSign|NumberStyles.AllowDecimalPoint|NumberStyles.AllowTrailingWhite, NumberFormatInfo.InvariantInfo, out d)) { 1123return Convert.ToDouble(o, NumberFormatInfo.InvariantInfo); 1136return ((double)value).ToString("R", NumberFormatInfo.InvariantInfo); 1142return Convert.ToString(value, NumberFormatInfo.InvariantInfo);
System\Xml\XPath\Internal\StringFunctions.cs (1)
60return num.ToString("R", NumberFormatInfo.InvariantInfo);
WindowsBase (2)
Shared\MS\Internal\TokenizerHelper.cs (2)
342NumberFormatInfo numberFormat = NumberFormatInfo.GetInstance(provider);