Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AddArguments()

void System.Reflection.Emit.SignatureHelper.AddArguments ( Type?[] arguments,
Type? requiredCustomModifiers[][],
Type? optionalCustomModifiers[][] )
inline

Definition at line 609 of file SignatureHelper.cs.

610 {
611 if (requiredCustomModifiers != null && (arguments == null || requiredCustomModifiers.Length != arguments.Length))
612 {
613 throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, "requiredCustomModifiers", "arguments"));
614 }
615 if (optionalCustomModifiers != null && (arguments == null || optionalCustomModifiers.Length != arguments.Length))
616 {
617 throw new ArgumentException(SR.Format(SR.Argument_MismatchedArrays, "optionalCustomModifiers", "arguments"));
618 }
619 if (arguments != null)
620 {
621 for (int i = 0; i < arguments.Length; i++)
622 {
623 AddArgument(arguments[i], (requiredCustomModifiers != null) ? requiredCustomModifiers[i] : null, (optionalCustomModifiers != null) ? optionalCustomModifiers[i] : null);
624 }
625 }
626 }

References System.Reflection.Emit.SignatureHelper.AddArgument(), System.SR.Argument_MismatchedArrays, and System.SR.Format().

Referenced by System.Reflection.Emit.DynamicILGenerator.GetMemberRefSignature(), System.Reflection.Emit.SignatureHelper.GetMethodSigHelper(), and System.Reflection.Emit.SignatureHelper.GetPropertySigHelper().