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)
349Debug.Assert(_converter != null, "[SerializationInfo.GetValue]_converter!=null"); 350return _converter.Convert(value, type); 367Debug.Assert(_converter != null, "[SerializationInfo.GetValue]_converter!=null"); 369return _converter.Convert(value, type); 375return ReferenceEquals(foundType, typeof(bool)) ? (bool)value! : _converter.ToBoolean(value!); // if value is null To* method will either deal with it or throw 381return ReferenceEquals(foundType, typeof(char)) ? (char)value! : _converter.ToChar(value!); 388return ReferenceEquals(foundType, typeof(sbyte)) ? (sbyte)value! : _converter.ToSByte(value!); 394return ReferenceEquals(foundType, typeof(byte)) ? (byte)value! : _converter.ToByte(value!); 400return ReferenceEquals(foundType, typeof(short)) ? (short)value! : _converter.ToInt16(value!); 407return ReferenceEquals(foundType, typeof(ushort)) ? (ushort)value! : _converter.ToUInt16(value!); 413return ReferenceEquals(foundType, typeof(int)) ? (int)value! : _converter.ToInt32(value!); 420return ReferenceEquals(foundType, typeof(uint)) ? (uint)value! : _converter.ToUInt32(value!); 426return ReferenceEquals(foundType, typeof(long)) ? (long)value! : _converter.ToInt64(value!); 433return ReferenceEquals(foundType, typeof(ulong)) ? (ulong)value! : _converter.ToUInt64(value!); 439return ReferenceEquals(foundType, typeof(float)) ? (float)value! : _converter.ToSingle(value!); 446return ReferenceEquals(foundType, typeof(double)) ? (double)value! : _converter.ToDouble(value!); 452return ReferenceEquals(foundType, typeof(decimal)) ? (decimal)value! : _converter.ToDecimal(value!); 458return ReferenceEquals(foundType, typeof(DateTime)) ? (DateTime)value! : _converter.ToDateTime(value!); 464return ReferenceEquals(foundType, typeof(string)) || value == null ? (string?)value : _converter.ToString(value);