What is the difference between is and as keyword in CSharp

is as
Returns true if an object can be cast to a specific type, otherwise false. Attempts to cast an object to a specific type, and returns null if it fails
bool isobject = (Object is Type); Type obj = Object as Type;

results matching ""

    No results matching ""