J
Jan Tielens
You can accomplish the same by create in class with static properties that
will act as global variables. Since the properties are static you don't need
an instance of the class, so you can use it like this:
Globals.MyVariable = "Testing";
Implementation:
public class Globals
{
static string _myVariable;
static public string MyVariable
{
get
{
return _myVariable;
}
set
{
_myVariable = value;
}
}
}
--
Greetz
Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan
will act as global variables. Since the properties are static you don't need
an instance of the class, so you can use it like this:
Globals.MyVariable = "Testing";
Implementation:
public class Globals
{
static string _myVariable;
static public string MyVariable
{
get
{
return _myVariable;
}
set
{
_myVariable = value;
}
}
}
--
Greetz
Jan Tielens
________________________________
Read my weblog: http://weblogs.asp.net/jan