protected DmdGenericParameterType(uint rid, DmdTypeBase declaringType, string name, int position, DmdGenericParameterAttributes attributes, IList <DmdCustomModifier> customModifiers) : this(rid, declaringType, null, name, position, attributes, customModifiers) { if ((object)declaringType == null) { throw new ArgumentNullException(nameof(declaringType)); } }
DmdGenericParameterType(uint rid, DmdTypeBase declaringType, DmdMethodBase declaringMethod, string name, int position, DmdGenericParameterAttributes attributes, IList <DmdCustomModifier> customModifiers) : base(customModifiers) { this.rid = rid; this.declaringType = declaringType; this.declaringMethod = declaringMethod; MetadataName = name ?? string.Empty; GenericParameterPosition = position; GenericParameterAttributes = attributes; }
protected DmdGenericParameterType(int position, IList <DmdCustomModifier> customModifiers) : base(customModifiers) { rid = 0; declaringType = null; declaringMethod = null; MetadataName = string.Empty; GenericParameterPosition = position; GenericParameterAttributes = 0; }
public DmdMDArrayType(DmdTypeBase elementType, int rank, IList <int> sizes, IList <int> lowerBounds, IList <DmdCustomModifier>?customModifiers) : base(customModifiers) { // Allow 0, it's allowed in the MD if (rank < 0) { throw new ArgumentOutOfRangeException(nameof(rank)); } if (sizes is null) { throw new ArgumentNullException(nameof(sizes)); } if (lowerBounds is null) { throw new ArgumentNullException(nameof(lowerBounds)); } this.rank = rank; this.elementType = elementType ?? throw new ArgumentNullException(nameof(elementType)); this.sizes = ReadOnlyCollectionHelpers.Create(sizes); this.lowerBounds = ReadOnlyCollectionHelpers.Create(lowerBounds); IsMetadataReference = elementType.IsMetadataReference; IsFullyResolved = elementType.IsFullyResolved; }
public DmdByRefType(DmdTypeBase elementType, IList <DmdCustomModifier> customModifiers) : base(customModifiers) { this.elementType = elementType ?? throw new ArgumentNullException(nameof(elementType)); IsMetadataReference = elementType.IsMetadataReference; IsFullyResolved = elementType.IsFullyResolved; }
public DmdGenericParameterTypeMD(DmdEcma335MetadataReader reader, uint rid, DmdTypeBase declaringType, string name, int position, DmdGenericParameterAttributes attributes, IList <DmdCustomModifier> customModifiers) : base(rid, declaringType, name, position, attributes, customModifiers) => this.reader = reader ?? throw new ArgumentNullException(nameof(reader));
public DmdGenericParameterTypeImpl(DmdAppDomain appDomain, DmdTypeBase declaringType, string name, int position, DmdGenericParameterAttributes attributes, IList <DmdCustomModifier> customModifiers) : base(0, declaringType, name, position, attributes, customModifiers) =>