CodeQL library for C#
codeql/csharp-all 0.9.2-dev (changelog, source)
Search

Predicate namespaceHasQualifiedName

Holds if namespace n has the qualified name qualifier.name.

For example if the qualified name is System.Collections.Generic, then qualifier=System.Collections and name=Generic.

Import path

import semmle.code.csharp.commons.QualifiedName
predicate namespaceHasQualifiedName(Namespace n, string qualifier, string name)