Click here to Skip to main content
15,891,704 members
Home / Discussions / C#
   

C#

 
Questionproperties vs public fields Pin
hypermegachi26-Nov-05 7:04
hypermegachi26-Nov-05 7:04 
AnswerRe: properties vs public fields Pin
Colin Angus Mackay26-Nov-05 7:23
Colin Angus Mackay26-Nov-05 7:23 
GeneralRe: properties vs public fields Pin
hypermegachi26-Nov-05 12:13
hypermegachi26-Nov-05 12:13 
GeneralRe: properties vs public fields Pin
Colin Angus Mackay26-Nov-05 13:53
Colin Angus Mackay26-Nov-05 13:53 
GeneralRe: properties vs public fields Pin
hypermegachi27-Nov-05 6:43
hypermegachi27-Nov-05 6:43 
GeneralRe: properties vs public fields Pin
Colin Angus Mackay27-Nov-05 13:24
Colin Angus Mackay27-Nov-05 13:24 
GeneralRe: properties vs public fields Pin
hypermegachi27-Nov-05 16:53
hypermegachi27-Nov-05 16:53 
GeneralRe: properties vs public fields Pin
Colin Angus Mackay27-Nov-05 20:26
Colin Angus Mackay27-Nov-05 20:26 
hypermegachi wrote:
i meant for my version of the Point struct i woulda been lazy and have public fields. nothing in the .NET framework exposes fields publicly, and so far that seems to be the only reason i can find in using properties over public fields.


No, there are lots of reasons for using properties over public fields. You just need to (re)read the replies I gave above to find some of them.


My: Blog | Photos

A stitch in time saves nine


GeneralRe: properties vs public fields Pin
hypermegachi28-Nov-05 3:58
hypermegachi28-Nov-05 3:58 
QuestionUrgent:Marshalling BSTR* Pin
rana7426-Nov-05 6:23
rana7426-Nov-05 6:23 
QuestionISR in C# Pin
mostafa.hk26-Nov-05 5:21
mostafa.hk26-Nov-05 5:21 
AnswerRe: ISR in C# Pin
Stanciu Vlad26-Nov-05 5:39
Stanciu Vlad26-Nov-05 5:39 
Questionregex Pin
Sam 200626-Nov-05 5:12
Sam 200626-Nov-05 5:12 
AnswerRe: regex Pin
Guffa26-Nov-05 8:50
Guffa26-Nov-05 8:50 
AnswerRe: regex Pin
Curtis Schlak.26-Nov-05 10:30
Curtis Schlak.26-Nov-05 10:30 
QuestionControl apperance in VS 2005 Pin
ON7AMI26-Nov-05 4:17
ON7AMI26-Nov-05 4:17 
AnswerRe: Control apperance in VS 2005 Pin
Sam 200626-Nov-05 5:17
Sam 200626-Nov-05 5:17 
GeneralRe: Control apperance in VS 2005 Pin
ON7AMI27-Nov-05 7:22
ON7AMI27-Nov-05 7:22 
Questioninserting images in word document from c#? Pin
Hiral Patel26-Nov-05 2:52
Hiral Patel26-Nov-05 2:52 
QuestionHow do I know that how many users are online? Pin
asifhameed126-Nov-05 1:31
asifhameed126-Nov-05 1:31 
AnswerRe: How do I know that how many users are online? Pin
MoustafaS26-Nov-05 1:51
MoustafaS26-Nov-05 1:51 
Questionread from excel file Pin
eyalso26-Nov-05 1:22
eyalso26-Nov-05 1:22 
AnswerRe: read from excel file Pin
Stanciu Vlad26-Nov-05 3:01
Stanciu Vlad26-Nov-05 3:01 
Questionverify c# on computer Pin
QzRz26-Nov-05 0:36
QzRz26-Nov-05 0:36 
AnswerRe: verify c# on computer Pin
ventomito26-Nov-05 5:29
ventomito26-Nov-05 5:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.