Type.IsInstanceOfType Method (Object)
.NET Framework (current version)
Determines whether the specified object is an instance of the current Type.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- o
-
Type:
System.Object
The object to compare with the current type.
Return Value
Type: System.Booleantrue if the current Type is in the inheritance hierarchy of the object represented by o, or if the current Type is an interface that o implements. false if neither of these conditions is the case, if o is null, or if the current Type is an open generic type (that is, ContainsGenericParameters returns true).
Implements
_Type.IsInstanceOfType(Object)This method can be overridden by a derived class.
Note |
|---|
A constructed type is not an instance of its generic type definition. That is, MyGenericList<int> (MyGenericList(Of Integer) in Visual Basic) is not an instance of MyGenericList<T> (MyGenericList(Of T) in Visual Basic). |
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show:
