Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie question on C#
Message
From
09/01/2012 11:57:15
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01532477
Message ID:
01532532
Views:
45
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform