Example #1
0
        protected bool Process(StitcherContext context)
        {
            //foreach (var type in context.Module.Types)
            //{
            //    foreach (var methodDef in type.Methods)
            //    {
            //        foreach (var instruction in methodDef.Body.Instructions)
            //        {
            //            var s = instruction.Operand as string;
            //            if (s != null)
            //            {
            //                s = s + " I was here";
            //                instruction.Operand = s;
            //            }
            //        }
            //    }
            //}

            //return true;

            var r = context.Project.References.ToArray();
            F(r);
            var a = AppDomain.CurrentDomain;
            var n = a.FriendlyName;
            return false;
        }
Example #2
0
        protected bool Process(StitcherContext context)
        {
            //foreach (var type in context.Module.Types)
            //{
            //    foreach (var methodDef in type.Methods)
            //    {
            //        foreach (var instruction in methodDef.Body.Instructions)
            //        {
            //            var s = instruction.Operand as string;
            //            if (s != null)
            //            {
            //                s = s + " I was here";
            //                instruction.Operand = s;
            //            }
            //        }
            //    }
            //}

            //return true;

            var r = context.Project.References.ToArray();

            F(r);
            var a = AppDomain.CurrentDomain;
            var n = a.FriendlyName;

            return(true);
        }
Example #3
0
 /// <summary>
 /// Processes the specified module.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <returns></returns>
 protected override bool Process(ProjectStitcherContext context)
 {
     var stitcherContext = new StitcherContext();
     foreach (var fieldInfo in context.GetType().GetFields(BindingFlags.Instance | BindingFlags.NonPublic))
         fieldInfo.SetValue(stitcherContext, fieldInfo.GetValue(context));
     return Process(stitcherContext);
 }
Example #4
0
        /// <summary>
        /// Processes the specified module.
        /// </summary>
        /// <param name="context">The context.</param>
        /// <returns></returns>
        protected override bool Process(ProjectStitcherContext context)
        {
            var stitcherContext = new StitcherContext();

            foreach (var fieldInfo in context.GetType().GetFields(BindingFlags.Instance | BindingFlags.NonPublic))
            {
                fieldInfo.SetValue(stitcherContext, fieldInfo.GetValue(context));
            }
            return(Process(stitcherContext));
        }
Example #5
0
 /// <summary>
 /// Processes the assembly from context.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <returns></returns>
 protected abstract bool Process(StitcherContext context);
Example #6
0
 /// <summary>
 /// Processes the assembly from context.
 /// </summary>
 /// <param name="context">The context.</param>
 /// <returns></returns>
 protected abstract bool Process(StitcherContext context);