4 references to ToObject
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (1)
2382If IsEnum(TargetType) Then Return [Enum].ToObject(TargetType, Expression)
System.Linq.Expressions (1)
System\Linq\Expressions\Interpreter\TypeOperations.cs (1)
444frame.Push(Enum.ToObject(_t, (short)from));
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (1)
2201case TypeCode.Int16: return ToObject(enumType, (short)value);
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokeUtils.cs (1)
47dstObject = dstType.IsEnum ? Enum.ToObject(dstType, shortValue) : shortValue;