예제 #1
0
 private static void DoAccept <T>(this T definition, Unity.Cecil.Visitor.Visitor visitor) where T : class
 {
     if ((visitor != null) && (definition != null))
     {
         visitor.Visit <T>(definition, Context.None);
     }
 }
예제 #2
0
 public static void Accept(this ArrayType arrayType, Unity.Cecil.Visitor.Visitor visitor)
 {
     arrayType.DoAccept <ArrayType>(visitor);
 }
예제 #3
0
 public static void Accept(this TypeDefinition typeDefinition, Unity.Cecil.Visitor.Visitor visitor)
 {
     typeDefinition.DoAccept <TypeDefinition>(visitor);
 }
예제 #4
0
 public static void Accept(this PointerType pointerType, Unity.Cecil.Visitor.Visitor visitor)
 {
     pointerType.DoAccept <PointerType>(visitor);
 }
예제 #5
0
 public static void Accept(this PropertyDefinition propertyDefinition, Unity.Cecil.Visitor.Visitor visitor)
 {
     propertyDefinition.DoAccept <PropertyDefinition>(visitor);
 }
예제 #6
0
 public static void Accept(this ModuleDefinition moduleDefinition, Unity.Cecil.Visitor.Visitor visitor)
 {
     moduleDefinition.DoAccept <ModuleDefinition>(visitor);
 }
예제 #7
0
 public static void Accept(this MethodDefinition methodDefinition, Unity.Cecil.Visitor.Visitor visitor)
 {
     methodDefinition.DoAccept <MethodDefinition>(visitor);
 }
예제 #8
0
 public static void Accept(this GenericInstanceType genericInstanceType, Unity.Cecil.Visitor.Visitor visitor)
 {
     genericInstanceType.DoAccept <GenericInstanceType>(visitor);
 }
예제 #9
0
 public static void Accept(this FieldDefinition fieldDefinition, Unity.Cecil.Visitor.Visitor visitor)
 {
     fieldDefinition.DoAccept <FieldDefinition>(visitor);
 }
예제 #10
0
 public static void Accept(this AssemblyDefinition assemblyDefinition, Unity.Cecil.Visitor.Visitor visitor)
 {
     assemblyDefinition.DoAccept <AssemblyDefinition>(visitor);
 }