Example #1
0
 public TypeReference ImportReference(TypeReference type, IGenericParameterProvider context)
 {
     Mixin.CheckType(type);
     if (type.Module == this)
     {
         return(type);
     }
     ModuleDefinition.CheckContext(context, this);
     return(this.MetadataImporter.ImportReference(type, context));
 }
Example #2
0
 public ArrayType(TypeReference type, int rank) : this(type)
 {
     Mixin.CheckType(type);
     if (rank == 1)
     {
         return;
     }
     this.dimensions = new Collection <ArrayDimension>(rank);
     for (int i = 0; i < rank; i++)
     {
         this.dimensions.Add(default(ArrayDimension));
     }
     this.etype = Editor_Mono.Cecil.Metadata.ElementType.Array;
 }
Example #3
0
 public ByReferenceType(TypeReference type) : base(type)
 {
     Mixin.CheckType(type);
     this.etype = Editor_Mono.Cecil.Metadata.ElementType.ByRef;
 }
Example #4
0
 public virtual TypeReference ImportReference(Type type, IGenericParameterProvider context)
 {
     Mixin.CheckType(type);
     return(this.ImportType(type, ImportGenericContext.For(context), (context != null) ? ReflectionImporter.ImportGenericKind.Open : ReflectionImporter.ImportGenericKind.Definition));
 }
 public virtual TypeReference ImportReference(TypeReference type, IGenericParameterProvider context)
 {
     Mixin.CheckType(type);
     return(this.ImportType(type, ImportGenericContext.For(context)));
 }
Example #6
0
 public PointerType(TypeReference type) : base(type)
 {
     Mixin.CheckType(type);
     this.etype = Editor_Mono.Cecil.Metadata.ElementType.Ptr;
 }
Example #7
0
 public SentinelType(TypeReference type) : base(type)
 {
     Mixin.CheckType(type);
     this.etype = Editor_Mono.Cecil.Metadata.ElementType.Sentinel;
 }
Example #8
0
 public TypeReference ImportReference(Type type, IGenericParameterProvider context)
 {
     Mixin.CheckType(type);
     ModuleDefinition.CheckContext(context, this);
     return(this.ReflectionImporter.ImportReference(type, context));
 }
Example #9
0
 public CustomAttributeArgument(TypeReference type, object value)
 {
     Mixin.CheckType(type);
     this.type  = type;
     this.value = value;
 }