CQRSalad.Dispatching.TypesScanning.AssemblyScanningRuleExtensions.IsInNamespaces C# (CSharp) Méthode

IsInNamespaces() private static méthode

private static IsInNamespaces ( this type, IList namespaces ) : bool
type this
namespaces IList
Résultat bool
        private static bool IsInNamespaces(this TypeInfo type, IList<string> namespaces)
        {
            return namespaces.Count == 0 || type.Namespace != null && namespaces.Any(x => type.Namespace.StartsWith(x));
        }
    }
AssemblyScanningRuleExtensions