Share via


Type.DeclaringType Property

Gets the type name of the class that declares the current member.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

Syntax

public override Type DeclaringType { get; }

Property Value

The Type object (type name) for the class that declares the current member. If the type is a nested type, this property returns the enclosing type.

Remarks

This property implements the abstract property inherited from the MemberInfo class.

Version Information

Available in .NET Micro Framework version 2.0, 2.5

See Also

Reference

Type Class
Type Members
System Namespace