Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie question on C#
Message
 
 
À
09/01/2012 11:57:15
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01532477
Message ID:
01532533
Vues:
29
>>Thank you for the explanation; this is now coming back. So I suppose I need to make it a field and not a property.
>
>
>
>You have implemented it as a field.
>
>A property has get/set accessors http://msdn.microsoft.com/en-us/library/w86s7x04.aspx
>
>
>But since it is readonly - I would just leave it as a field
>

This is exactly what I plan to do. I just mixed in my head the term field and property. But I remember that the property needs to have Set Get methods; I think <g>.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform