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