using System;
using System.IO;
class MainClass
{
public static void Main()
{
Object someObject = new StringReader("This is a StringReader");
if (someObject is TextReader)
{
Console.WriteLine(
"is: someObject is a TextReader or a derived class");
}
}
}
is: someObject is a TextReader or a derived class