Beispiel #1
0
        public void ProcessInstructions()
        {
            ReplaceInstructionsWithConstant();

            CopyConstructorInitInstructions();

            FixGeneratedType();

            copier.Process();

            copier.Clear();
            constants.Clear();       //clear constants
        }
Beispiel #2
0
        public void AddAssembly(string origAssemblyPath)
        {
            var origAssembly = CecilUtils.GetAssemblyDef(origAssemblyPath);
            var copier       = new CecilCopier(origAssembly.MainModule, destAssembly.MainModule);

            foreach (var origType in origAssembly.MainModule.Types)
            {
                if (origType.BaseType != null)
                {
                    copier.Copy(origType);
                }
            }

            copier.Process();
        }