Access variable from other namespaces
问题 I am trying to set/read a variable in class bluRemote from another namespace/class like so: namespace BluMote { class bluRemote { public string cableOrSat = "CABLE"; ........ } } and the other cs file (which is the form): namespace BluMote { public partial class SettingsForm : Form { if (BluMote.bluRemote.cableOrSat == "CABLE") { BluMote.bluRemote.cableOrSat = "SAT"; } ....... } } I know i am doing it wrong but I'm more used to doing stuff like this in VB so its like night and day ha :o) 回答1: