Exemplo n.º 1
0
        public MethodPatcher(PatcherObject prnt, MethodDefinition metDef) : base(prnt)
        {
            methodDefinition = metDef;
            IlProc = metDef.Body.GetILProcessor();
            rootAssemblyPatcher = prnt.rootAssemblyPatcher;

            if (MainClass.gendiffs && MainClass.newAssCS)
                original = metDef.Print();
        }
Exemplo n.º 2
0
		public FieldPatcher(PatcherObject prnt, FieldDefinition fieldDef)
			: base(prnt)
		{
			fieldDefinition = fieldDef;
		}
Exemplo n.º 3
0
		public TypePatcher(PatcherObject prnt, TypeDefinition typDef)
			: base(prnt)
		{
			typeDefinition = typDef;
			rootAssemblyPatcher = prnt.rootAssemblyPatcher;
		}