CK.Reflection.ILGeneratorExtension.LdArgBox C# (CSharp) Method

LdArgBox() public static method

Emits a LdArg with an optional OpCodes.Box if p's type is a value type or a generic parameter (after a OpCodes.Ldobj if the parameter is by ref). Handles static or instance methods (takes care of System.Reflection.CallingConventions.HasThis bit of the method's CallingConvention).
public static LdArgBox ( this g, ParameterInfo p ) : void
g this This object.
p System.Reflection.ParameterInfo Parameter of the current method.
return void
        public static void LdArgBox( this ILGenerator g, ParameterInfo p )
        {
            int iP = p.Position;
            if( (((MethodBase)p.Member).CallingConvention & CallingConventions.HasThis) != 0 ) ++iP;
            g.LdArgBox( iP, p.ParameterType );
        }

Same methods

ILGeneratorExtension::LdArgBox ( this g, int idxParameter, Type parameterType ) : void