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