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)); }
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; }
public ByReferenceType(TypeReference type) : base(type) { Mixin.CheckType(type); this.etype = Editor_Mono.Cecil.Metadata.ElementType.ByRef; }
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))); }
public PointerType(TypeReference type) : base(type) { Mixin.CheckType(type); this.etype = Editor_Mono.Cecil.Metadata.ElementType.Ptr; }
public SentinelType(TypeReference type) : base(type) { Mixin.CheckType(type); this.etype = Editor_Mono.Cecil.Metadata.ElementType.Sentinel; }
public TypeReference ImportReference(Type type, IGenericParameterProvider context) { Mixin.CheckType(type); ModuleDefinition.CheckContext(context, this); return(this.ReflectionImporter.ImportReference(type, context)); }
public CustomAttributeArgument(TypeReference type, object value) { Mixin.CheckType(type); this.type = type; this.value = value; }