/// <summary> /// Initializes the base of a method signature. /// </summary> /// <param name="attributes"></param> /// <param name="memberReturnType"></param> /// <param name="parameterTypes"></param> protected MethodSignatureBase( CallingConventionAttributes attributes, TypeSignature memberReturnType, IEnumerable <TypeSignature> parameterTypes) : base(attributes, memberReturnType) { ParameterTypes = new List <TypeSignature>(parameterTypes); }
protected CallingConventionSignature(CallingConventionAttributes attributes) { Attributes = attributes; }
/// <summary> /// Creates a new instantiation signature for a generic method with the provided type arguments. /// </summary> /// <param name="attributes">The attributes.</param> /// <param name="typeArguments">The type arguments to use for the instantiation.</param> public GenericInstanceMethodSignature(CallingConventionAttributes attributes, IEnumerable <TypeSignature> typeArguments) : base(attributes | CallingConventionAttributes.GenericInstance) { TypeArguments = new List <TypeSignature>(typeArguments); }
/// <summary> /// Creates a new instantiation signature for a generic method. /// </summary> /// <param name="attributes">The attributes.</param> public GenericInstanceMethodSignature(CallingConventionAttributes attributes) : this(attributes, Enumerable.Empty <TypeSignature>()) { }
/// <summary> /// Initializes a new member signature. /// </summary> /// <param name="attributes">The attributes of the signature.</param> /// <param name="memberReturnType">The type of the object this member returns or contains.</param> protected MemberSignature(CallingConventionAttributes attributes, TypeSignature memberReturnType) : base(attributes) { MemberReturnType = memberReturnType; }
/// <summary> /// Creates a new field signature with the provided field type. /// </summary> /// <param name="attributes">The attributes of the field.</param> /// <param name="fieldType">The field type.</param> /// <remarks> /// This constructor automatically sets the <see cref="CallingConventionAttributes.Field"/> bit. /// </remarks> public FieldSignature(CallingConventionAttributes attributes, TypeSignature fieldType) : base(attributes | CallingConventionAttributes.Field, fieldType) { }
/// <summary> /// Initializes a new property signature with the provided property type and a list of parameter types. /// </summary> /// <param name="attributes">The attributes.</param> /// <param name="propertyType">The property type.</param> /// <param name="parameterTypes">The parameter types.</param> public PropertySignature(CallingConventionAttributes attributes, TypeSignature propertyType, IEnumerable <TypeSignature> parameterTypes) : base(attributes | CallingConventionAttributes.Property, propertyType, parameterTypes) { }
/// <summary> /// Initializes a new empty property signature. /// </summary> /// <param name="attributes">The attributes.</param> protected PropertySignature(CallingConventionAttributes attributes) : base(attributes | CallingConventionAttributes.Property, null, Enumerable.Empty <TypeSignature>()) { }
/// <summary> /// Creates a new method signature with the provided return and parameter types. /// </summary> /// <param name="attributes">The attributes.</param> /// <param name="returnType">The return type of the method.</param> /// <param name="parameterTypes">The types of the parameter the method defines.</param> public MethodSignature(CallingConventionAttributes attributes, TypeSignature returnType, IEnumerable <TypeSignature> parameterTypes) : base(attributes, returnType, parameterTypes) { }
/// <summary> /// Initializes an empty method signature with no parameters. /// </summary> /// <param name="attributes">The attributes</param> protected MethodSignature(CallingConventionAttributes attributes) : base(attributes, null, Enumerable.Empty <TypeSignature>()) { }