1 write to _converter
System.Private.CoreLib (1)
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (1)
45
_converter
= converter;
19 references to _converter
System.Private.CoreLib (19)
src\libraries\System.Private.CoreLib\src\System\Runtime\Serialization\SerializationInfo.cs (19)
349
Debug.Assert(
_converter
!= null, "[SerializationInfo.GetValue]_converter!=null");
350
return
_converter
.Convert(value, type);
367
Debug.Assert(
_converter
!= null, "[SerializationInfo.GetValue]_converter!=null");
369
return
_converter
.Convert(value, type);
375
return ReferenceEquals(foundType, typeof(bool)) ? (bool)value! :
_converter
.ToBoolean(value!); // if value is null To* method will either deal with it or throw
381
return ReferenceEquals(foundType, typeof(char)) ? (char)value! :
_converter
.ToChar(value!);
388
return ReferenceEquals(foundType, typeof(sbyte)) ? (sbyte)value! :
_converter
.ToSByte(value!);
394
return ReferenceEquals(foundType, typeof(byte)) ? (byte)value! :
_converter
.ToByte(value!);
400
return ReferenceEquals(foundType, typeof(short)) ? (short)value! :
_converter
.ToInt16(value!);
407
return ReferenceEquals(foundType, typeof(ushort)) ? (ushort)value! :
_converter
.ToUInt16(value!);
413
return ReferenceEquals(foundType, typeof(int)) ? (int)value! :
_converter
.ToInt32(value!);
420
return ReferenceEquals(foundType, typeof(uint)) ? (uint)value! :
_converter
.ToUInt32(value!);
426
return ReferenceEquals(foundType, typeof(long)) ? (long)value! :
_converter
.ToInt64(value!);
433
return ReferenceEquals(foundType, typeof(ulong)) ? (ulong)value! :
_converter
.ToUInt64(value!);
439
return ReferenceEquals(foundType, typeof(float)) ? (float)value! :
_converter
.ToSingle(value!);
446
return ReferenceEquals(foundType, typeof(double)) ? (double)value! :
_converter
.ToDouble(value!);
452
return ReferenceEquals(foundType, typeof(decimal)) ? (decimal)value! :
_converter
.ToDecimal(value!);
458
return ReferenceEquals(foundType, typeof(DateTime)) ? (DateTime)value! :
_converter
.ToDateTime(value!);
464
return ReferenceEquals(foundType, typeof(string)) || value == null ? (string?)value :
_converter
.ToString(value);