public static object CheckArgument(object srcObject, RuntimeTypeHandle dstType, BinderBundle binderBundle) { return(InvokeUtils.CheckArgument(srcObject, dstType, binderBundle)); }
// FieldInfo.SetValueDirect() has a completely different set of rules on how to coerce the argument from // the other Reflection api. public static object CheckArgumentForDirectFieldAccess(object srcObject, RuntimeTypeHandle dstType) { return(InvokeUtils.CheckArgument(srcObject, dstType.ToEETypePtr(), InvokeUtils.CheckArgumentSemantics.SetFieldDirect, binderBundle: null)); }
public static Object CheckArgument(Object srcObject, RuntimeTypeHandle dstType) { return(InvokeUtils.CheckArgument(srcObject, dstType)); }