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;
 }
 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));
Пример #3
0
 public DmdGenericParameterTypeImpl(DmdAppDomain appDomain, DmdTypeBase declaringType, string name, int position, DmdGenericParameterAttributes attributes, IList <DmdCustomModifier> customModifiers) : base(0, declaringType, name, position, attributes, customModifiers) =>
Пример #4
0
 /// <summary>
 /// Makes a generic method parameter
 /// </summary>
 /// <param name="position">Position</param>
 /// <param name="declaringMethod">Declaring method</param>
 /// <param name="name">Name</param>
 /// <param name="attributes">Attributes</param>
 /// <param name="customModifiers">Custom modifiers or null</param>
 /// <param name="options">Options</param>
 /// <returns></returns>
 public abstract DmdType MakeGenericMethodParameter(int position, DmdMethodBase declaringMethod, string name, DmdGenericParameterAttributes attributes, IList <DmdCustomModifier> customModifiers, DmdMakeTypeOptions options = DmdMakeTypeOptions.None);
 protected DmdGenericParameterType(uint rid, DmdMethodBase declaringMethod, string name, int position, DmdGenericParameterAttributes attributes, IList <DmdCustomModifier> customModifiers)
     : this(rid, null, declaringMethod, name, position, attributes, customModifiers)
 {
     if ((object)declaringMethod == null)
     {
         throw new ArgumentNullException(nameof(declaringMethod));
     }
 }
Пример #6
0
 /// <summary>
 /// Makes a generic type parameter
 /// </summary>
 /// <param name="position">Position</param>
 /// <param name="declaringType">Declaring type</param>
 /// <param name="name">Name</param>
 /// <param name="attributes">Attributes</param>
 /// <param name="customModifiers">Custom modifiers or null</param>
 /// <param name="options">Options</param>
 /// <returns></returns>
 public abstract DmdType MakeGenericTypeParameter(int position, DmdType declaringType, string name, DmdGenericParameterAttributes attributes, IList <DmdCustomModifier> customModifiers, MakeTypeOptions options = MakeTypeOptions.None);