13 references to ToObject
mscorlib (1)
system\enum.cs (1)
568
return
ToObject
(enumType, (long)value);
System (4)
compmod\system\componentmodel\EnumConverter.cs (4)
126
return Enum.
ToObject
(type, convertedValue);
141
return Enum.
ToObject
(type, finalValue);
214
flagValues.Add((Enum)Enum.
ToObject
(type, ul));
227
flagValues.Add((Enum)Enum.
ToObject
(type, longValue));
System.Runtime.Serialization (2)
System\Runtime\Serialization\EnumDataContract.cs (1)
424
return Enum.
ToObject
(UnderlyingType, longValue);
System\Runtime\Serialization\Json\JsonEnumDataContract.cs (1)
43
enumValue = Enum.
ToObject
(TraditionalDataContract.UnderlyingType, jsonReader.ReadElementContentAsLong());
System.Windows.Forms (1)
winforms\Managed\System\WinForms\KeysConverter.cs (1)
221
return Enum.
ToObject
(typeof(Keys), finalValue);
System.Xml (5)
System\Xml\Serialization\XmlSerializationReaderILGen.cs (2)
1022
ilg.Ldc(Enum.
ToObject
(mapping.TypeDesc.Type, constants[i].Value));
1123
retValues.Add(Enum.
ToObject
(mapping.TypeDesc.Type, c.Value));
System\Xml\Serialization\XmlSerializationWriterILGen.cs (3)
587
ilg.Ldc(Enum.
ToObject
(mapping.TypeDesc.Type, c.Value));
2181
eValue = Enum.
ToObject
(choiceMapping.TypeDesc.Type, choiceMapping.Constants[i].Value);
2193
eValue = Enum.
ToObject
(choiceMapping.TypeDesc.Type, choiceMapping.Constants[i].Value);