public SecurityAttribute(TypeReference attributeType)
 {
     this.attribute_type = attributeType;
 }
 public EventDefinition(string name, EventAttributes attributes, TypeReference eventType)
     : base(name, eventType)
 {
     this.attributes = (ushort)attributes;
     this.token      = new MetadataToken(TokenType.Event);
 }
Example #3
0
 public SentinelType(TypeReference type)
     : base(type)
 {
     Mixin.CheckType(type);
     this.etype = MD.ElementType.Sentinel;
 }
Example #4
0
		public TypeReference Import (TypeReference type, IGenericParameterProvider context)
		{
			return ImportReference (type, context);
		}
Example #5
0
		public TypeReference ImportReference (TypeReference type)
		{
			return ImportReference (type, null);
		}
Example #6
0
		internal TypeDefinition Resolve (TypeReference type)
		{
			return MetadataResolver.Resolve (type);
		}
Example #7
0
		public bool TryGetTypeReference (string fullName, out TypeReference type)
		{
			return TryGetTypeReference (string.Empty, fullName, out type);
		}
Example #8
0
 internal TypeSpecification(TypeReference type)
     : base(null, null)
 {
     this.element_type = type;
     this.token        = new MetadataToken(TokenType.TypeSpec);
 }
Example #9
0
 public PropertyDefinition(string name, PropertyAttributes attributes, TypeReference propertyType)
     : base(name, propertyType)
 {
     this.attributes = (ushort)attributes;
     this.token      = new MetadataToken(TokenType.Property);
 }
Example #10
0
 public CustomAttributeArgument(TypeReference type, object value)
 {
     Mixin.CheckType(type);
     this.type  = type;
     this.value = value;
 }