Open sandboxFocus

Method IsSelfOrDeclaringTypeGeneric

IsSelfOrDeclaringTypeGeneric(IMemberOrNamedType)

Returns true if the current declaration, or any the declaring type, is generic.

Declaration
public static bool IsSelfOrDeclaringTypeGeneric(this IMemberOrNamedType declaration)
Parameters
Type Name Description
IMemberOrNamedType declaration

The declaration to check.

Returns
Type Description
bool

true if the declaration or any of its declaring types is generic; otherwise, false.