G
Guest
Consider this a continuation of 2/27/2007 thread by Zytan entitled"Subject:
Does C# have static local variables like C++?"
In C++:
void mysub()
{
static double x;
blah; blah;
}
In C++ the variable x retained its value for subsequent entries into the
method
That being the objective, will the following accomplish the same in C sharp?
static void mysub()
{
double x;
blah; blah;
}
Does C# have static local variables like C++?"
In C++:
void mysub()
{
static double x;
blah; blah;
}
In C++ the variable x retained its value for subsequent entries into the
method
That being the objective, will the following accomplish the same in C sharp?
static void mysub()
{
double x;
blah; blah;
}