/*************************************/ /**** Targeted Methods ****/ /*************************************/ protected virtual void SetComponentDetails(MethodBase method) { if (method == null) { return; } // Set component name if (method is MethodInfo) { Name = method.Name; } else if (method is ConstructorInfo) { Name = method.DeclaringType.Name; } else { Name = "UnknownMethod"; } // Set description Description = method.Description(); }