8 references to ThrowInvalidCast
System.Private.Windows.Core (8)
Windows\Win32\System\Variant\VARIANT.cs (8)
873
=> value.vt == VT_BOOL ? value.data.boolVal != VARIANT_BOOL.VARIANT_FALSE :
ThrowInvalidCast
<bool>();
881
=> value.vt == VT_I2 ? value.data.iVal :
ThrowInvalidCast
<short>();
893
=> value.vt is VT_I4 or VT_INT ? value.data.intVal :
ThrowInvalidCast
<int>();
906
=> value.vt is VT_UI4 or VT_UINT ? value.data.uintVal :
ThrowInvalidCast
<uint>();
919
=> value.vt == VT_BSTR ? value.data.bstrVal :
ThrowInvalidCast
<BSTR>();
940
=> value.vt == VT_CY ? value.data.cyVal :
ThrowInvalidCast
<CY>();
946
_ =>
ThrowInvalidCast
<decimal>(),
963
=> value.vt == VT_R8 ? value.data.dblVal :
ThrowInvalidCast
<double>();