Share via


Type.IsInstanceOfType Method

Determines whether the specified object is an instance of the current type.

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

Syntax

[MethodImplAttribute]
public virtual bool IsInstanceOfType (
         Object o
)

Parameters

  • o
    The object you want to compare with the current type.

Return Value

true if the current type is in the inheritance hierarchy of the object represented by the o parameter, or if the current type is an interface that o supports; false if neither of the preceding conditions is the case, or if o is a null reference.

Remarks

This method can be overridden by a derived 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