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

Member predicate Callable::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 |

Callable getUnboundDeclaration()