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

Member predicate Accessor::getUnboundDeclaration

Gets the unbound version of this declaration, that is, the declaration where all type arguments have been removed. For example, in

class C<T>
{
    class Nested
    {
    }

    void Method<S>() { }
}

we have the following

| Declaration | Unbound declaration | |————————-|———————| | C<int> | C`1 | | C`1.Nested | C`1.Nested | | C<int>.Nested | C`1.Nested | | C`1.Method`1 | C`1.Method`1 | | C<int>.Method`1 | C`1.Method`1 | | C<int>.Method<string> | C`1.Method`1 |

Accessor getUnboundDeclaration()