Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Should the compiler have seen this one coming
Message
De
15/10/2010 13:31:30
 
 
À
15/10/2010 13:23:57
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01485619
Message ID:
01485626
Vues:
69
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();
>>    }
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform