|
-
Aug 14th, 2006, 12:24 PM
#1
Thread Starter
Hyperactive Member
[2.0] is operator not being able use
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");
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|