I always see people giving me code (I mean code examples for questions on SO and the like) like:
class MyData{
ObservableCollection<Color> Colors;
ObservableCollection<Fruit> Fruits;
ObservableCollection<Pairs> Pairs;
public void MatchCurrentSelection(){
.....
etc
}
}
}
Everytime I start writing code in visual studio, it forces me to declare the visibility, and always included in a namespace. Do people jsut leave out the namespace as its irrelevant? And why am I always forced to set the visibilty? (It appears to automatically append private by default)
namespace TheProject
{
public class MyData
{
private ObservableCollection<Colors> Colors;
private ObservableCollection<Fruits> Fruits;
...
etc
I have to be missing something here...What's the story?
Thanks