System.Reflection.Emit.SignatureHelper.AddSentinel C# (CSharp) Method

AddSentinel() public method

public AddSentinel ( ) : void
return void
        public void AddSentinel() { }
        public override bool Equals(object obj) { throw null; }

Usage Example

Esempio n. 1
0
        internal override SignatureHelper GetMemberRefSignature(
            CallingConventions call,
            Type returnType,
            Type[] parameterTypes,
            Type[] optionalParameterTypes)
        {
            SignatureHelper sig = SignatureHelper.GetMethodSigHelper(call, returnType);

            if (parameterTypes != null)
            {
                foreach (Type t in parameterTypes)
                {
                    sig.AddArgument(t);
                }
            }
            if (optionalParameterTypes != null && optionalParameterTypes.Length != 0)
            {
                // add the sentinel
                sig.AddSentinel();
                foreach (Type t in optionalParameterTypes)
                {
                    sig.AddArgument(t);
                }
            }
            return(sig);
        }
All Usage Examples Of System.Reflection.Emit.SignatureHelper::AddSentinel