Implemented interface member:
method
GetFormat
System.IFormatProvider.GetFormat(System.Type)
80 references to GetFormat
Microsoft.VisualBasic.Core (3)
Microsoft\VisualBasic\Strings.vb (3)
1478
nfi = CType(ci.
GetFormat
(GetType(System.Globalization.NumberFormatInfo)), NumberFormatInfo)
1589
nfi = CType(ci.
GetFormat
(GetType(System.Globalization.NumberFormatInfo)), NumberFormatInfo)
1702
nfi = CType(ci.
GetFormat
(GetType(System.Globalization.NumberFormatInfo)), NumberFormatInfo)
System.ComponentModel.TypeConverter (9)
src\runtime\src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
106
var formatInfo = (NumberFormatInfo?)culture.
GetFormat
(typeof(NumberFormatInfo));
System\ComponentModel\BaseNumberConverter.cs (2)
74
NumberFormatInfo? formatInfo = (NumberFormatInfo?)culture.
GetFormat
(typeof(NumberFormatInfo));
98
NumberFormatInfo? formatInfo = (NumberFormatInfo?)culture.
GetFormat
(typeof(NumberFormatInfo));
System\ComponentModel\DateOnlyConverter.cs (1)
52
formatInfo = (DateTimeFormatInfo?)culture.
GetFormat
(typeof(DateTimeFormatInfo));
System\ComponentModel\DateTimeConverter.cs (2)
56
formatInfo = (DateTimeFormatInfo?)culture.
GetFormat
(typeof(DateTimeFormatInfo));
93
DateTimeFormatInfo? formatInfo = (DateTimeFormatInfo?)culture.
GetFormat
(typeof(DateTimeFormatInfo));
System\ComponentModel\DateTimeOffsetConverter.cs (2)
56
formatInfo = (DateTimeFormatInfo?)culture.
GetFormat
(typeof(DateTimeFormatInfo));
96
formatInfo = (DateTimeFormatInfo?)culture.
GetFormat
(typeof(DateTimeFormatInfo));
System\ComponentModel\TimeOnlyConverter.cs (1)
52
formatInfo = (DateTimeFormatInfo?)culture.
GetFormat
(typeof(DateTimeFormatInfo));
System.Data.Common (1)
System\Data\SQLTypes\SQLDateTime.cs (1)
366
DateTimeFormatInfo dtfi = (DateTimeFormatInfo)(CultureInfo.CurrentCulture.
GetFormat
(typeof(DateTimeFormatInfo)))!;
System.Drawing.Primitives (1)
src\runtime\src\libraries\Common\src\System\Drawing\ColorConverterCommon.cs (1)
106
var formatInfo = (NumberFormatInfo?)culture.
GetFormat
(typeof(NumberFormatInfo));
System.Management (63)
System\Management\ManagementDateTime.cs (9)
139
IFormatProvider frmInt32 = (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(int));
177
ticks = (long.Parse(tempString, (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(long)))) * (TimeSpan.TicksPerMillisecond / 1000);
240
IFormatProvider frmInt32 = (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(int));
275
string strMicrosec = microsec.ToString((IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(long)));
315
IFormatProvider frmInt32 = (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(int));
355
ticks = (long.Parse(tempString, (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(long)))) * (System.TimeSpan.TicksPerMillisecond / 1000);
408
string dmtftimespan = timespan.Days.ToString((IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(int))).PadLeft(8, '0');
409
IFormatProvider frmInt32 = (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(int));
430
string strMicrosec = microsec.ToString((IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(long)));
System\Management\ManagementQuery.cs (2)
2976
s = s + " within " + withinInterval.TotalSeconds.ToString((IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(double)));
2985
s = s + " group within " + groupWithinInterval.TotalSeconds.ToString((IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(double)));
System\Management\Property.cs (38)
306
((ulong[])val)[i] = Convert.ToUInt64((string)(wmiValueArray.GetValue(i)), (IFormatProvider)CultureInfo.CurrentCulture.
GetFormat
(typeof(ulong)));
320
((long[])val)[i] = Convert.ToInt64((string)(wmiValueArray.GetValue(i)), (IFormatProvider)CultureInfo.CurrentCulture.
GetFormat
(typeof(long)));
349
CimType.UInt64 => Convert.ToUInt64((string)wmiValue, (IFormatProvider)CultureInfo.CurrentCulture.
GetFormat
(typeof(ulong))),
350
CimType.SInt64 => Convert.ToInt64((string)wmiValue, (IFormatProvider)CultureInfo.CurrentCulture.
GetFormat
(typeof(long))),
383
((short[])(wmiValue))[i] = (short)Convert.ToSByte(valArray.GetValue(i), (IFormatProvider)culInfo.
GetFormat
(typeof(sbyte)));
393
((byte[])wmiValue)[i] = Convert.ToByte(valArray.GetValue(i), (IFormatProvider)culInfo.
GetFormat
(typeof(byte)));
404
((short[])(wmiValue))[i] = Convert.ToInt16(valArray.GetValue(i), (IFormatProvider)culInfo.
GetFormat
(typeof(short)));
411
((int[])(wmiValue))[i] = (int)(Convert.ToUInt16(valArray.GetValue(i), (IFormatProvider)culInfo.
GetFormat
(typeof(ushort))));
421
((int[])(wmiValue))[i] = Convert.ToInt32(valArray.GetValue(i), (IFormatProvider)culInfo.
GetFormat
(typeof(int)));
428
((int[])(wmiValue))[i] = (int)(Convert.ToUInt32(valArray.GetValue(i), (IFormatProvider)culInfo.
GetFormat
(typeof(uint))));
434
((string[])(wmiValue))[i] = (Convert.ToInt64(valArray.GetValue(i), (IFormatProvider)culInfo.
GetFormat
(typeof(long)))).ToString((IFormatProvider)culInfo.
GetFormat
(typeof(long)));
440
((string[])(wmiValue))[i] = (Convert.ToUInt64(valArray.GetValue(i), (IFormatProvider)culInfo.
GetFormat
(typeof(ulong)))).ToString((IFormatProvider)culInfo.
GetFormat
(typeof(ulong)));
450
((float[])(wmiValue))[i] = Convert.ToSingle(valArray.GetValue(i), (IFormatProvider)culInfo.
GetFormat
(typeof(float)));
461
((double[])(wmiValue))[i] = Convert.ToDouble(valArray.GetValue(i), (IFormatProvider)culInfo.
GetFormat
(typeof(double)));
468
((short[])(wmiValue))[i] = (short)Convert.ToChar(valArray.GetValue(i), (IFormatProvider)culInfo.
GetFormat
(typeof(char)));
491
((bool[])(wmiValue))[i] = Convert.ToBoolean(valArray.GetValue(i), (IFormatProvider)culInfo.
GetFormat
(typeof(bool)));
514
wmiValue = (short)Convert.ToSByte(val, (IFormatProvider)culInfo.
GetFormat
(typeof(short)));
518
wmiValue = Convert.ToByte(val, (IFormatProvider)culInfo.
GetFormat
(typeof(byte)));
522
wmiValue = Convert.ToInt16(val, (IFormatProvider)culInfo.
GetFormat
(typeof(short)));
526
wmiValue = (int)(Convert.ToUInt16(val, (IFormatProvider)culInfo.
GetFormat
(typeof(ushort))));
530
wmiValue = Convert.ToInt32(val, (IFormatProvider)culInfo.
GetFormat
(typeof(int)));
534
wmiValue = (int)Convert.ToUInt32(val, (IFormatProvider)culInfo.
GetFormat
(typeof(uint)));
538
wmiValue = (Convert.ToInt64(val, (IFormatProvider)culInfo.
GetFormat
(typeof(long)))).ToString((IFormatProvider)culInfo.
GetFormat
(typeof(long)));
542
wmiValue = (Convert.ToUInt64(val, (IFormatProvider)culInfo.
GetFormat
(typeof(ulong)))).ToString((IFormatProvider)culInfo.
GetFormat
(typeof(ulong)));
546
wmiValue = Convert.ToSingle(val, (IFormatProvider)culInfo.
GetFormat
(typeof(float)));
550
wmiValue = Convert.ToDouble(val, (IFormatProvider)culInfo.
GetFormat
(typeof(double)));
554
wmiValue = (short)Convert.ToChar(val, (IFormatProvider)culInfo.
GetFormat
(typeof(char)));
564
wmiValue = Convert.ToBoolean(val, (IFormatProvider)culInfo.
GetFormat
(typeof(bool)));
660
((string[])wmiValue)[i] = ((uint)(arrayValue[i])).ToString((IFormatProvider)culInfo.
GetFormat
(typeof(uint)));
670
((string[])wmiValue)[i] = ((ulong)(arrayValue[i])).ToString((IFormatProvider)culInfo.
GetFormat
(typeof(ulong)));
680
((string[])wmiValue)[i] = ((long)(arrayValue[i])).ToString((IFormatProvider)culInfo.
GetFormat
(typeof(long)));
740
wmiValue = Convert.ToString(val, (IFormatProvider)culInfo.
GetFormat
(typeof(uint)));
742
wmiValue = Convert.ToInt32(val, (IFormatProvider)culInfo.
GetFormat
(typeof(int)));
747
wmiValue = ((ulong)val).ToString((IFormatProvider)culInfo.
GetFormat
(typeof(ulong)));
System\Management\Qualifier.cs (3)
111
((int[])(wmiValue))[i] = Convert.ToInt32(valArray.GetValue(i), (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(int)));
117
((double[])(wmiValue))[i] = Convert.ToDouble(valArray.GetValue(i), (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(double)));
129
((bool[])(wmiValue))[i] = Convert.ToBoolean(valArray.GetValue(i), (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(bool)));
System\Management\WMIGenerator.cs (11)
793
strTemp = strTemp + strToAdd + k.ToString((IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(int)));
822
strTemp = inString + strToAdd + k.ToString((IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(int)));
1839
long test = System.Convert.ToInt64(ValueMap[i], (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(ulong)));
1846
(IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(
1943
long test = System.Convert.ToInt64(BitMap[i], (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(ulong)));
1959
if ((System.Convert.ToInt64(BitMap[i], (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(ulong))) == 0))
4812
IFormatProvider formatProv = (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(int));
5051
ret = System.Convert.ToInt32(strTemp, (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(int)));
5055
ret = System.Convert.ToInt32(bitMap, (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(int)));
5200
ret = System.Convert.ToBoolean(classobj.Qualifiers["dynamic"].Value, (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(bool)));
5227
arrayToAdd.Add(System.Convert.ToInt32(numericValue, (IFormatProvider)CultureInfo.InvariantCulture.
GetFormat
(typeof(int))));
System.Private.CoreLib (2)
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\DateTimeFormatInfo.cs (1)
303
return (DateTimeFormatInfo)culture.
GetFormat
(typeof(DateTimeFormatInfo))!;
src\runtime\src\libraries\System.Private.CoreLib\src\System\Globalization\NumberFormatInfo.cs (1)
425
return (NumberFormatInfo)culture.
GetFormat
(typeof(NumberFormatInfo))!;
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\TabOrder.cs (1)
61
NumberFormatInfo? formatInfo = (NumberFormatInfo?)CultureInfo.CurrentCulture.
GetFormat
(typeof(NumberFormatInfo));