C# local static data

  • Thread starter Thread starter Andrew Chalk
  • Start date Start date
A

Andrew Chalk

Is there a C# equivalent to local static data.

I.e. in C:

int fred()
{
static int halibut = 0;

...
...

return (..);
}

Thanks.
 
No such thing. I think the language designers want you to use static data
in some class for that purpose.
 
Back
Top