CQRSalad.Dispatching.TypesScanning.AssemblyScanningRuleExtensions.IsInNamespaces C# (CSharp) Метод

IsInNamespaces() приватный статический Метод

private static IsInNamespaces ( this type, IList namespaces ) : bool
type this
namespaces IList
Результат 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