47 references to GetInstance
System.Private.CoreLib (47)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (3)
449if (!DateTimeParse.TryParse(s, DateTimeFormatInfo.GetInstance(provider), style, ref dtResult)) 514if (!DateTimeParse.TryParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), style, ref dtResult)) 560DateTimeFormatInfo dtfi = DateTimeFormatInfo.GetInstance(provider);
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (16)
1592return DateTimeParse.Parse(s, DateTimeFormatInfo.GetInstance(provider), DateTimeStyles.None); 1599return DateTimeParse.Parse(s, DateTimeFormatInfo.GetInstance(provider), styles); 1605return DateTimeParse.Parse(s, DateTimeFormatInfo.GetInstance(provider), styles); 1616return DateTimeParse.ParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), DateTimeStyles.None); 1628return DateTimeParse.ParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), style); 1634return DateTimeParse.ParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), style); 1641return DateTimeParse.ParseExactMultiple(s, formats, DateTimeFormatInfo.GetInstance(provider), style); 1647return DateTimeParse.ParseExactMultiple(s, formats, DateTimeFormatInfo.GetInstance(provider), style); 1808return DateTimeParse.TryParse(s, DateTimeFormatInfo.GetInstance(provider), styles, out result); 1814return DateTimeParse.TryParse(s, DateTimeFormatInfo.GetInstance(provider), styles, out result); 1827return DateTimeParse.TryParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), style, out result); 1833return DateTimeParse.TryParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), style, out result); 1846return DateTimeParse.TryParseExactMultiple(s, formats, DateTimeFormatInfo.GetInstance(provider), style, out result); 1852return DateTimeParse.TryParseExactMultiple(s, formats, DateTimeFormatInfo.GetInstance(provider), style, out result); 1934return DateTimeFormat.GetAllDateTimes(this, DateTimeFormatInfo.GetInstance(provider)); 1950return DateTimeFormat.GetAllDateTimes(this, format, DateTimeFormatInfo.GetInstance(provider));
src\libraries\System.Private.CoreLib\src\System\DateTimeOffset.cs (12)
674DateTimeFormatInfo.GetInstance(formatProvider), 683DateTime dateResult = DateTimeParse.Parse(input, DateTimeFormatInfo.GetInstance(formatProvider), styles, out TimeSpan offset); 706DateTimeFormatInfo.GetInstance(formatProvider), 715DateTime dateResult = DateTimeParse.ParseExact(input, format, DateTimeFormatInfo.GetInstance(formatProvider), styles, out TimeSpan offset); 726DateTimeFormatInfo.GetInstance(formatProvider), 735DateTime dateResult = DateTimeParse.ParseExactMultiple(input, formats, DateTimeFormatInfo.GetInstance(formatProvider), styles, out TimeSpan offset); 841DateTimeFormatInfo.GetInstance(formatProvider), 852bool parsed = DateTimeParse.TryParse(input, DateTimeFormatInfo.GetInstance(formatProvider), styles, out DateTime dateResult, out TimeSpan offset); 869DateTimeFormatInfo.GetInstance(formatProvider), 881bool parsed = DateTimeParse.TryParseExact(input, format, DateTimeFormatInfo.GetInstance(formatProvider), styles, out DateTime dateResult, out TimeSpan offset); 898DateTimeFormatInfo.GetInstance(formatProvider), 910bool parsed = DateTimeParse.TryParseExactMultiple(input, formats, DateTimeFormatInfo.GetInstance(formatProvider), styles, out DateTime dateResult, out TimeSpan offset);
src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormat.cs (8)
926dtfi = DateTimeFormatInfo.GetInstance(provider); 1005dtfi = DateTimeFormatInfo.GetInstance(provider); 1012dtfi = DateTimeFormatInfo.GetInstance(provider); 1019dtfi = DateTimeFormatInfo.GetInstance(provider); 1040dtfi = DateTimeFormatInfo.GetInstance(provider); 1096dtfi = DateTimeFormatInfo.GetInstance(provider); 1103dtfi = DateTimeFormatInfo.GetInstance(provider); 1110dtfi = DateTimeFormatInfo.GetInstance(provider);
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanFormat.cs (4)
37return FormatG(value, DateTimeFormatInfo.GetInstance(formatProvider), c == 'G' ? StandardFormat.G : StandardFormat.g); 44FormatCustomized(value, format, DateTimeFormatInfo.GetInstance(formatProvider), ref vlb); 73return TryFormatStandard(value, sf, DateTimeFormatInfo.GetInstance(formatProvider).DecimalSeparatorTChar<TChar>(), destination, out charsWritten); 78FormatCustomized(value, format, DateTimeFormatInfo.GetInstance(formatProvider), ref vlb);
src\libraries\System.Private.CoreLib\src\System\Globalization\TimeSpanParse.cs (1)
705raw.Init(DateTimeFormatInfo.GetInstance(formatProvider));
src\libraries\System.Private.CoreLib\src\System\TimeOnly.cs (3)
619if (!DateTimeParse.TryParse(s, DateTimeFormatInfo.GetInstance(provider), style, ref dtResult)) 685if (!DateTimeParse.TryParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), style, ref dtResult)) 730DateTimeFormatInfo dtfi = DateTimeFormatInfo.GetInstance(provider);