internal static AspectPredicateCollection AddDefaultCore(this AspectPredicateCollection collection) { return(collection .AddMethod("Equals") .AddMethod("GetHashCode") .AddMethod("ToString") .AddMethod("GetType") .AddMethod(m => m.DeclaringType == typeof(object)) .AddMethod(i => i.GetReflector().IsDefined <NonAspectAttribute>()) .AddType(i => !i.GetTypeInfo().IsVisible() || i.GetReflector().IsDefined <NonAspectAttribute>())); }
public static AspectPredicateCollection AddMethod(this AspectPredicateCollection collection, string method) { collection.AddMethod(AspectPredicates.ForMethod(method)); return(collection); }