Yea.Reflection.Emit.TypeBuilder.CreateConstructor C# (CSharp) Method

CreateConstructor() public method

Creates a constructor
public CreateConstructor ( MethodAttributes attributes = MethodAttributes.Public, IEnumerable parameterTypes = null, CallingConventions callingConventions = CallingConventions.Standard ) : IMethodBuilder
attributes MethodAttributes attributes for the constructor (public, private, etc.)
parameterTypes IEnumerable The types for the parameters
callingConventions CallingConventions The calling convention used
return IMethodBuilder
        public virtual IMethodBuilder CreateConstructor(MethodAttributes attributes = MethodAttributes.Public,
                                                        IEnumerable<Type> parameterTypes = null,
                                                        CallingConventions callingConventions =
                                                            CallingConventions.Standard)
        {
            var returnValue = new ConstructorBuilder(this, attributes, parameterTypes, callingConventions);
            Constructors.Add(returnValue);
            return returnValue;
        }