What's wrong with having a public variable in a class? I'm not asking what are the advantages of having a property, but why shouldnt we have a public variable?
I was analyzing a small project with Project Analyzer and it said:
"Variables that aren't Private should be avioded in classes. Read/Write access to a Class's memeber variables should only be allowed via properties."
why!?!:confused:
