コード例 #1
0
 public static bool OnlyDependsOn(this IHasDependencies c, string pattern, bool useRegularExpressions = false)
 {
     return(c.GetTypeDependencies().All(d => d.FullNameMatches(pattern, useRegularExpressions)));
 }
コード例 #2
0
 public static IEnumerable <Interface> GetInterfaceDependencies(this IHasDependencies c,
                                                                Architecture architecture)
 {
     return(c.GetTypeDependencies(architecture).OfType <Interface>());
 }
コード例 #3
0
 public static IEnumerable <Interface> GetInterfaceDependencies(this IHasDependencies c)
 {
     return(c.GetTypeDependencies().OfType <Interface>());
 }
コード例 #4
0
 public static IEnumerable <Class> GetClassDependencies(this IHasDependencies c, Architecture architecture)
 {
     return(c.GetTypeDependencies(architecture).OfType <Class>());
 }
コード例 #5
0
 public static IEnumerable <Class> GetClassDependencies(this IHasDependencies c)
 {
     return(c.GetTypeDependencies().OfType <Class>());
 }
コード例 #6
0
 public static bool DependsOn(this IHasDependencies c, IType type)
 {
     return(c.GetTypeDependencies().Contains(type));
 }