Documentation de Dvp.Net. Forum : http://www.developpez.net/forums/f1239/applications/projets/projets-heberges/dvp-net/

[Ceci est une documentation préliminaire, sous réserve de modification.]

Détermine si un type hérite d'un autre type, ou implémente une interface

Namespace:  Developpez.Dotnet.Reflection
Assembly:  Developpez.Dotnet (in Developpez.Dotnet.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
public static bool Is<T>(
	this Type type
)
Visual Basic (Declaration)
<ExtensionAttribute> _
Public Shared Function Is(Of T) ( _
	type As Type _
) As Boolean
Visual C++
[ExtensionAttribute]
public:
generic<typename T>
static bool Is(
	Type^ type
)

Parameters

type
Type: System..::.Type
Le type à vérifier

Type Parameters

T
Le type de base dont type doit hériter

Return Value

true si type est T, hérite de T, ou implémente T. Sinon, false

See Also