7 references to ToObject
Microsoft.VisualBasic.Core (1)
Microsoft\VisualBasic\CompilerServices\Conversions.vb (1)
2387If IsEnum(TargetType) Then Return [Enum].ToObject(TargetType, Expression)
System.Linq.Expressions (2)
System\Linq\Expressions\Interpreter\TypeOperations.cs (2)
447frame.Push(Enum.ToObject(_t, (ushort)from)); 451frame.Push(Enum.ToObject(_t, (char)from));
System.Private.CoreLib (4)
src\libraries\System.Private.CoreLib\src\System\Enum.cs (2)
2205case TypeCode.UInt16: return ToObject(enumType, (ushort)value); 2207case TypeCode.Char: return ToObject(enumType, (char)value);
src\libraries\System.Private.CoreLib\src\System\Reflection\InvokeUtils.cs (2)
37dstObject = dstType.IsEnum ? Enum.ToObject(dstType, charValue) : charValue; 67dstObject = dstType.IsEnum ? Enum.ToObject(dstType, ushortValue) : ushortValue;