<PackageReference Include="System.Reflection.Emit.ILGeneration" Version="4.7.0-preview1.19504.10" />

System.Reflection.Emit.SignatureHelper

public sealed class SignatureHelper
Provides methods for building signatures.
namespace System.Reflection.Emit { public sealed class SignatureHelper { public void AddArgument(Type clsArgument); public void AddArgument(Type argument, bool pinned); public void AddArgument(Type argument, Type[] requiredCustomModifiers, Type[] optionalCustomModifiers); public void AddArguments(Type[] arguments, Type[][] requiredCustomModifiers, Type[][] optionalCustomModifiers); public void AddSentinel(); public static SignatureHelper GetFieldSigHelper(Module mod); public static SignatureHelper GetLocalVarSigHelper(); public static SignatureHelper GetLocalVarSigHelper(Module mod); public static SignatureHelper GetMethodSigHelper(CallingConventions callingConvention, Type returnType); public static SignatureHelper GetMethodSigHelper(Module mod, CallingConventions callingConvention, Type returnType); public static SignatureHelper GetMethodSigHelper(Module mod, Type returnType, Type[] parameterTypes); public static SignatureHelper GetPropertySigHelper(Module mod, CallingConventions callingConvention, Type returnType, Type[] requiredReturnTypeCustomModifiers, Type[] optionalReturnTypeCustomModifiers, Type[] parameterTypes, Type[][] requiredParameterTypeCustomModifiers, Type[][] optionalParameterTypeCustomModifiers); public static SignatureHelper GetPropertySigHelper(Module mod, Type returnType, Type[] parameterTypes); public static SignatureHelper GetPropertySigHelper(Module mod, Type returnType, Type[] requiredReturnTypeCustomModifiers, Type[] optionalReturnTypeCustomModifiers, Type[] parameterTypes, Type[][] requiredParameterTypeCustomModifiers, Type[][] optionalParameterTypeCustomModifiers); public byte[] GetSignature(); } }