TypeDeclaringType Property |
Gets the type that declares the current nested type or generic type parameter.
Namespace: SystemAssembly: mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax public override Type DeclaringType { get; }
Return Value
Type:
TypeA
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