コード例 #1
0
 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>()));
 }
コード例 #2
0
 public static AspectPredicateCollection AddMethod(this AspectPredicateCollection collection, string method)
 {
     collection.AddMethod(AspectPredicates.ForMethod(method));
     return(collection);
 }