Type.IsInstanceOfType Method (Object)
Determines whether the specified object is an instance of the current Type.
Assembly: mscorlib (in mscorlib.dll)
abstract IsInstanceOfType : o:Object -> bool override IsInstanceOfType : o:Object -> bool
The object to compare with the current type.
Return ValueType: System.Boolean
true 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).
This method can be overridden by a derived class.
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).
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0