0
comment
comment
on 12/12/2010 2:33 AM
How many times are you writing these keywords? For many of the things I write I don’t feel that these keywords add to the readability of the code. It would be sweet to be able to specify on for example assembly level the default visibility of your code. Or perhaps some short version of the keywords?
$ class Comment {
_ id; //private
$ Id { get{ return id;} set{ id=value;} } //public
@ someValue = “”;//protected
}
Or let the visibility be govern by name convention if you set some flag in assemblyinfo.cs[...]