F
Frank
Hi everyone, I have a general class design question. I come from a
VB5-6 background where I made applications that used an active x dll
to access the database. In the VB world each class was in a seperate
file and I was able to have a module that they all shared that had
global variables, like my ado connection object. In C sharp it looks
like all my class can be contained into one .cs file, so my question
is where would I put any variables that I want all my classes to have
access to. I have been experimenting a little and I looks like I
could have one top level class and then put all my sub classes inside
that class but is this the right way to design it?
VB5-6 background where I made applications that used an active x dll
to access the database. In the VB world each class was in a seperate
file and I was able to have a module that they all shared that had
global variables, like my ado connection object. In C sharp it looks
like all my class can be contained into one .cs file, so my question
is where would I put any variables that I want all my classes to have
access to. I have been experimenting a little and I looks like I
could have one top level class and then put all my sub classes inside
that class but is this the right way to design it?