public ByReferenceType(TypeReference type) : base(type) { Mixin.CheckType(type); this.etype = Editor_Mono.Cecil.Metadata.ElementType.ByRef; }
public virtual FieldReference ImportReference(FieldInfo field, IGenericParameterProvider context) { Mixin.CheckField(field); return(this.ImportField(field, ImportGenericContext.For(context))); }
public virtual MethodReference ImportReference(MethodBase method, IGenericParameterProvider context) { Mixin.CheckMethod(method); return(this.ImportMethod(method, ImportGenericContext.For(context), (context != null) ? ReflectionImporter.ImportGenericKind.Open : ReflectionImporter.ImportGenericKind.Definition)); }
public ReflectionImporter(ModuleDefinition module) { Mixin.CheckModule(module); this.module = module; }
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 CustomAttributeNamedArgument(string name, CustomAttributeArgument argument) { Mixin.CheckName(name); this.name = name; this.argument = argument; }
public MetadataImporter(ModuleDefinition module) { Mixin.CheckModule(module); this.module = module; }
public PointerType(TypeReference type) : base(type) { Mixin.CheckType(type); this.etype = Editor_Mono.Cecil.Metadata.ElementType.Ptr; }
public virtual TypeReference ImportReference(TypeReference type, IGenericParameterProvider context) { Mixin.CheckType(type); return(this.ImportType(type, ImportGenericContext.For(context))); }
public MethodReference ImportReference(MethodBase method, IGenericParameterProvider context) { Mixin.CheckMethod(method); ModuleDefinition.CheckContext(context, this); return(this.ReflectionImporter.ImportReference(method, context)); }
public SentinelType(TypeReference type) : base(type) { Mixin.CheckType(type); this.etype = Editor_Mono.Cecil.Metadata.ElementType.Sentinel; }
public FieldReference ImportReference(FieldInfo field, IGenericParameterProvider context) { Mixin.CheckField(field); ModuleDefinition.CheckContext(context, this); return(this.ReflectionImporter.ImportReference(field, context)); }
public TypeReference ImportReference(Type type, IGenericParameterProvider context) { Mixin.CheckType(type); ModuleDefinition.CheckContext(context, this); return(this.ReflectionImporter.ImportReference(type, context)); }
public TypeDefinition GetType(string @namespace, string name) { Mixin.CheckName(name); return(((TypeDefinitionCollection)this.Types).GetType(@namespace ?? string.Empty, name)); }
public RequiredModifierType(TypeReference modifierType, TypeReference type) : base(type) { Mixin.CheckModifier(modifierType, type); this.modifier_type = modifierType; this.etype = Editor_Mono.Cecil.Metadata.ElementType.CModReqD; }
public virtual MethodReference ImportReference(MethodReference method, IGenericParameterProvider context) { Mixin.CheckMethod(method); return(this.ImportMethod(method, ImportGenericContext.For(context))); }
private static bool Equals(AssemblyNameReference a, AssemblyNameReference b) { return(object.ReferenceEquals(a, b) || (!(a.Name != b.Name) && Mixin.Equals <Version>(a.Version, b.Version) && !(a.Culture != b.Culture) && Mixin.Equals(a.PublicKeyToken, b.PublicKeyToken))); }
public CustomAttributeArgument(TypeReference type, object value) { Mixin.CheckType(type); this.type = type; this.value = value; }