I am trying to use "is" operator and I am getting some compiler error:
The type or namespace name 'xxxStuntPilot' could not be found (are you missing a using directive or an assembly reference?)
code:
class Program
{
static void Main(string[] args)
{
Pilot basamPilot = new Pilot();
StuntPilot xxxStuntPilot = new StuntPilot("Danny");
xxxStuntPilot.HowmanyHoursofFlying(5);
Pilot yyyPilot = xxxStuntPilot;
if (yyyPilot is xxxStuntPilot)
{
Console.WriteLine("They are same");
}
else
{
Console.WriteLine("They are not same");
}


Reply With Quote
