Removed diagnostic NGD1002 (marshalParamsAs argument must be array of correct length) reported when marshalParamsAs argument (e.g., to FromAction or FromFunctionPointer) contained a different number of elements than arguments needed for the native generic delegate (e.g., the number of arguments passed to Invoke).
If excessive MarshalAsAttribute elements are provided in the array argument, they are ignored. If too few elements are provided, then the remainder are treated as null.
Removed diagnostic NGD1002 (
marshalParamsAs argument must be array of correct length
) reported whenmarshalParamsAs
argument (e.g., toFromAction
orFromFunctionPointer
) contained a different number of elements than arguments needed for the native generic delegate (e.g., the number of arguments passed toInvoke
).If excessive
MarshalAsAttribute
elements are provided in the array argument, they are ignored. If too few elements are provided, then the remainder are treated asnull
.Closes #5.