Click or drag to resize
TypeDeclaringType Property
Gets the type that declares the current nested type or generic type parameter.

Namespace: System
Assembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
public override Type DeclaringType { get; }

Return Value

Type: Type
A Type object representing the enclosing type, if the current type is a nested type; or the generic type definition, if the current type is a type parameter of a generic type; or the type that declares the generic method, if the current type is a type parameter of a generic method; otherwise, null.
See Also