Click here to Skip to main content
15,924,402 members
Home / Discussions / C#
   

C#

 
GeneralRe: Learning C# Pin
starcraft4ever15-Feb-07 11:09
starcraft4ever15-Feb-07 11:09 
GeneralRe: Learning C# Pin
hairy_hats14-Feb-07 23:34
hairy_hats14-Feb-07 23:34 
GeneralRe: Learning C# Pin
moon_stick15-Feb-07 1:36
moon_stick15-Feb-07 1:36 
GeneralRe: Learning C# Pin
hairy_hats15-Feb-07 2:39
hairy_hats15-Feb-07 2:39 
GeneralRe: Learning C# Pin
starcraft4ever15-Feb-07 7:05
starcraft4ever15-Feb-07 7:05 
GeneralRe: Learning C# Pin
Christian Graus15-Feb-07 9:19
protectorChristian Graus15-Feb-07 9:19 
GeneralRe: Learning C# Pin
starcraft4ever15-Feb-07 11:04
starcraft4ever15-Feb-07 11:04 
GeneralRe: Learning C# Pin
Daniel Grunwald15-Feb-07 9:51
Daniel Grunwald15-Feb-07 9:51 
For most applications, having public fields is no problem. Don't blindly trust every FxCop rule.
Only if you require binary compatibility between versions of your library, you shouldn't have any public fields - not because there is any problems with public fields, but because you later might want to add raising an event to the setter and thus need a property.

What I really would like to see is a way to create attributes/something else that transforms the source code before compiling - so I could create my own way of generating repetitive code (e.g. for properties). Something like http://www.postsharp.org/, but it would have to run while compiling - before doesn't work because I would like to have type information available, after doesn't work because then I couldn't simply access the generated members.



GeneralRe: Learning C# Pin
starcraft4ever14-Feb-07 21:30
starcraft4ever14-Feb-07 21:30 
GeneralRe: Learning C# Pin
Christian Graus14-Feb-07 22:01
protectorChristian Graus14-Feb-07 22:01 
GeneralWell said! Pin
RoswellNX14-Feb-07 23:33
RoswellNX14-Feb-07 23:33 
GeneralRe: Learning C# Pin
d2_grv15-Feb-07 0:39
d2_grv15-Feb-07 0:39 
GeneralRe: Learning C# Pin
benjymous14-Feb-07 21:25
benjymous14-Feb-07 21:25 
GeneralRe: Learning C# Pin
Pravarakhya14-Feb-07 22:02
Pravarakhya14-Feb-07 22:02 
GeneralRe: Learning C# Pin
Shorgov14-Feb-07 22:35
Shorgov14-Feb-07 22:35 
GeneralRe: Learning C# Pin
Pravarakhya14-Feb-07 22:40
Pravarakhya14-Feb-07 22:40 
GeneralRe: Learning C# Pin
Shorgov14-Feb-07 22:49
Shorgov14-Feb-07 22:49 
GeneralRe: Learning C# Pin
DavidNohejl14-Feb-07 23:22
DavidNohejl14-Feb-07 23:22 
GeneralRe: Learning C# Pin
Shorgov14-Feb-07 23:51
Shorgov14-Feb-07 23:51 
GeneralRe: Learning C# [modified] Pin
Eric Goedhart15-Feb-07 2:31
professionalEric Goedhart15-Feb-07 2:31 
GeneralRe: Learning C# Pin
Muammar©15-Feb-07 7:05
Muammar©15-Feb-07 7:05 
GeneralRe: Learning C# Pin
Daniel Grunwald15-Feb-07 9:52
Daniel Grunwald15-Feb-07 9:52 
GeneralRe: Learning C# Pin
Rudolf Jan16-Feb-07 1:16
Rudolf Jan16-Feb-07 1:16 
Questiondraw the shapes on top of the controls... Pin
sathishtl00714-Feb-07 19:33
sathishtl00714-Feb-07 19:33 
AnswerRe: draw the shapes on top of the controls... Pin
rah_sin14-Feb-07 19:39
professionalrah_sin14-Feb-07 19:39 

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.