AgentMulder.ReSharper.Domain.Registrations.InNamespaceRegistration.IsSatisfiedBy C# (CSharp) Метод

IsSatisfiedBy() публичный Метод

public IsSatisfiedBy ( ITypeElement typeElement ) : bool
typeElement ITypeElement
Результат bool
        public override bool IsSatisfiedBy(ITypeElement typeElement)
        {
            var elementNamespace = typeElement.GetContainingNamespace();

            bool isMatch;
            if (includeSubnamespaces)
            {
                isMatch = elementNamespace.QualifiedName == matchedNamespace.QualifiedName ||
                          elementNamespace.QualifiedName.StartsWith(matchedNamespace.QualifiedName + ".", StringComparison.OrdinalIgnoreCase);
            }
            else
            {
                isMatch = elementNamespace.QualifiedName == matchedNamespace.QualifiedName;
            }

            return isMatch && base.IsSatisfiedBy(typeElement);
        }