Partager 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 the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

Type Class
Type Members
System Namespace