15 references to CheckArgumentSemantics
System.Private.CoreLib (15)
Internal\Runtime\Augments\RuntimeAugments.cs (2)
614
return InvokeUtils.CheckArgument(srcObject, dstType.ToMethodTable(), InvokeUtils.
CheckArgumentSemantics
.DynamicInvoke, binderBundle);
621
return InvokeUtils.CheckArgument(srcObject, dstType.ToMethodTable(), InvokeUtils.
CheckArgumentSemantics
.SetFieldDirect, binderBundle: null);
System\Array.NativeAot.cs (1)
413
value = InvokeUtils.CheckArgument(value, pElementEEType, InvokeUtils.
CheckArgumentSemantics
.ArraySet, binderBundle: null);
System\InvokeUtils.cs (10)
43
internal static object? CheckArgument(object? srcObject, MethodTable* dstEEType,
CheckArgumentSemantics
semantics, BinderBundle? binderBundle)
57
if (semantics ==
CheckArgumentSemantics
.SetFieldDirect)
82
internal static object? CheckArgumentConversions(object srcObject, MethodTable* dstEEType,
CheckArgumentSemantics
semantics, BinderBundle? binderBundle)
102
private static Exception ConvertOrWidenPrimitivesEnumsAndPointersIfPossible(object srcObject, MethodTable* dstEEType,
CheckArgumentSemantics
semantics, out object? dstObject)
106
if (semantics ==
CheckArgumentSemantics
.SetFieldDirect && (srcEEType->IsEnum || dstEEType->IsEnum))
375
private static Exception ConvertPointerIfPossible(object srcObject, MethodTable* dstEEType,
CheckArgumentSemantics
semantics, out object dstPtr)
396
private static Exception CreateChangeTypeException(MethodTable* srcEEType, MethodTable* dstEEType,
CheckArgumentSemantics
semantics)
400
case
CheckArgumentSemantics
.DynamicInvoke:
401
case
CheckArgumentSemantics
.SetFieldDirect:
403
case
CheckArgumentSemantics
.ArraySet:
System\Reflection\DynamicInvokeInfo.cs (2)
636
arg = InvokeUtils.CheckArgumentConversions(arg, argumentInfo.Type, InvokeUtils.
CheckArgumentSemantics
.DynamicInvoke, binderBundle);
704
arg = InvokeUtils.CheckArgumentConversions(arg, argumentInfo.Type, InvokeUtils.
CheckArgumentSemantics
.DynamicInvoke, binderBundle: null);