Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Newbie question on C#
Message
De
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:
01532532
Vues:
44
>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



>
>>A field is a variable that is visible to the entire class. If it needs to be seen from a different class, make it a property.
>>
>>
>>>I don't think that having public field is the same as public memvar in VFP. But I could be mistaken.
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform