コード例 #1
0
 /// <summary>
 /// Add new method to current module.
 /// Set method as current
 /// </summary>
 public void AddMethod(MethodEntry newMethod)
 {
     _currentModule.Methods.Add(newMethod);
     _currentMethod = newMethod;
 }
コード例 #2
0
        /// <summary>
        /// Adds new method to report
        /// </summary>
        public override void VisitMethod(MethodDefinition methodDef, Context context)
        {
            var method = new MethodEntry(methodDef.Name, methodDef.DeclaringType.FullName, context.ShouldInstrumentCurrentMember);

            context.ReportBuilder.AddMethod(method);
        }