CodeQL library for C#
Search

Member predicate UnboundGenericClass::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<> | | C<>.Nested | C<>.Nested | | C<int>.Nested | C<>.Nested | | C<>.Method<> | C<>.Method<> | | C<int>.Method<> | C<>.Method<> | | C<int>.Method<string> | C<>.Method<> |

UnboundGenericClass getUnboundDeclaration()