DeclaringType Property

GenericTypeParameterBuilder.DeclaringType Property

Gets the generic type definition or generic method definition to which the generic type parameter belongs.

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

public override Type DeclaringType { get; }
/** @property */
public Type get_DeclaringType ()

public override function get DeclaringType () : Type

Not applicable.

Property Value

If the type parameter belongs to a generic type, a Type object representing that generic type; if the type parameter belongs to a generic method, a Type object representing that type that declared that generic method.

The declaring type is not necessarily a generic type. If the current type parameter belongs to a generic method, the type in which the method is declared might not be generic.

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2016 Microsoft