Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Should the compiler have seen this one coming
Message
From
15/10/2010 13:31:30
 
 
To
15/10/2010 13:23:57
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01485619
Message ID:
01485626
Views:
70
True - that's all it does.
But it is not all it *could* do :-}
But, TBH, I wasn't seriously expecting any other outcome......

>No, I don't think so. It's creating a property of type Nester that won't really exist until you run it. All the compiler does is verify that Nester is defined.
>
>>
public class Program
>>    {
>>        static void Main(string[] args)
>>        {
>>            Nester n = new Nester();
>>        }
>>    }
>>
>>    public class Nester
>>    {
>>        public Nester nested = new Nester();
>>    }
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform