Static C# class members
Posted on 2006-11-30
If i create a C# class with a static member as follows:
static private PropertyBag settings;
private PropertyBag settingsLocal;
Does this exist only once for all instances of the class and the settingsLocal exist for each class instatiation?
How do i reference the static member?
the compiler complains as follows when I try to access "this.settings"
Error 8 Static member .......settings' cannot be accessed with an instance reference; qualify it with a type name instead C:\......PropertiesFileReader.cs 160 8