public ByReferenceType(TypeReference type) : base(type)
 {
     Mixin.CheckType(type);
     this.etype = Editor_Mono.Cecil.Metadata.ElementType.ByRef;
 }
Beispiel #2
0
 public virtual FieldReference ImportReference(FieldInfo field, IGenericParameterProvider context)
 {
     Mixin.CheckField(field);
     return(this.ImportField(field, ImportGenericContext.For(context)));
 }
Beispiel #3
0
 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));
 }
Beispiel #4
0
 public ReflectionImporter(ModuleDefinition module)
 {
     Mixin.CheckModule(module);
     this.module = module;
 }
Beispiel #5
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));
 }
Beispiel #6
0
 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;
 }
Beispiel #8
0
 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)));
 }
Beispiel #10
0
 public MethodReference ImportReference(MethodBase method, IGenericParameterProvider context)
 {
     Mixin.CheckMethod(method);
     ModuleDefinition.CheckContext(context, this);
     return(this.ReflectionImporter.ImportReference(method, context));
 }
Beispiel #11
0
 public SentinelType(TypeReference type) : base(type)
 {
     Mixin.CheckType(type);
     this.etype = Editor_Mono.Cecil.Metadata.ElementType.Sentinel;
 }
Beispiel #12
0
 public FieldReference ImportReference(FieldInfo field, IGenericParameterProvider context)
 {
     Mixin.CheckField(field);
     ModuleDefinition.CheckContext(context, this);
     return(this.ReflectionImporter.ImportReference(field, context));
 }
Beispiel #13
0
 public TypeReference ImportReference(Type type, IGenericParameterProvider context)
 {
     Mixin.CheckType(type);
     ModuleDefinition.CheckContext(context, this);
     return(this.ReflectionImporter.ImportReference(type, context));
 }
Beispiel #14
0
 public TypeDefinition GetType(string @namespace, string name)
 {
     Mixin.CheckName(name);
     return(((TypeDefinitionCollection)this.Types).GetType(@namespace ?? string.Empty, name));
 }
Beispiel #15
0
 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)));
 }
Beispiel #17
0
 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)));
 }
Beispiel #18
0
 public CustomAttributeArgument(TypeReference type, object value)
 {
     Mixin.CheckType(type);
     this.type  = type;
     this.value = value;
 }