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