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; }
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); }
/// <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); }
/// <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)); }
/// <summary> /// Processes the assembly from context. /// </summary> /// <param name="context">The context.</param> /// <returns></returns> protected abstract bool Process(StitcherContext context);