47 references to GetInstance
System.Private.CoreLib (47)
src\libraries\System.Private.CoreLib\src\System\DateOnly.cs (3)
481if (!DateTimeParse.TryParse(s, DateTimeFormatInfo.GetInstance(provider), style, ref dtResult)) 556if (!DateTimeParse.TryParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), style, ref dtResult)) 619DateTimeFormatInfo dtfi = DateTimeFormatInfo.GetInstance(provider);
src\libraries\System.Private.CoreLib\src\System\DateTime.cs (16)
1583return DateTimeParse.Parse(s, DateTimeFormatInfo.GetInstance(provider), DateTimeStyles.None); 1590return DateTimeParse.Parse(s, DateTimeFormatInfo.GetInstance(provider), styles); 1596return DateTimeParse.Parse(s, DateTimeFormatInfo.GetInstance(provider), styles); 1607return DateTimeParse.ParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), DateTimeStyles.None); 1619return DateTimeParse.ParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), style); 1625return DateTimeParse.ParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), style); 1632return DateTimeParse.ParseExactMultiple(s, formats, DateTimeFormatInfo.GetInstance(provider), style); 1638return DateTimeParse.ParseExactMultiple(s, formats, DateTimeFormatInfo.GetInstance(provider), style); 1799return DateTimeParse.TryParse(s, DateTimeFormatInfo.GetInstance(provider), styles, out result); 1805return DateTimeParse.TryParse(s, DateTimeFormatInfo.GetInstance(provider), styles, out result); 1818return DateTimeParse.TryParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), style, out result); 1824return DateTimeParse.TryParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), style, out result); 1837return DateTimeParse.TryParseExactMultiple(s, formats, DateTimeFormatInfo.GetInstance(provider), style, out result); 1843return DateTimeParse.TryParseExactMultiple(s, formats, DateTimeFormatInfo.GetInstance(provider), style, out result); 1925return DateTimeFormat.GetAllDateTimes(this, DateTimeFormatInfo.GetInstance(provider)); 1941return 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)
650if (!DateTimeParse.TryParse(s, DateTimeFormatInfo.GetInstance(provider), style, ref dtResult)) 726if (!DateTimeParse.TryParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), style, ref dtResult)) 788DateTimeFormatInfo dtfi = DateTimeFormatInfo.GetInstance(provider);