W
Willem van Rumpt
Hi all,
I was wondering: Why isn't it possible to write "static classes". By
this I mean a class that will _never_ get instantiated, but will always
work on and with other static members of its class.
The class would in effect behave like a "classic" win32 dll and its
exported functions, only this time referred by
<classname>.<ExportedFunction>
I know (how) I can achieve the same results with a singleton, but why
not just mark the entire class as "static" instead of marking every
single member as static?
I'm quite new to .NET (digging, gropin and mutilating around for about 8
months now), so, my questions are:
- Is it possible?
- If not, are there better solutions to my "problem"?
- Would it any how be a nice language/platform addition?
Thanks in advance,
Willem
I was wondering: Why isn't it possible to write "static classes". By
this I mean a class that will _never_ get instantiated, but will always
work on and with other static members of its class.
The class would in effect behave like a "classic" win32 dll and its
exported functions, only this time referred by
<classname>.<ExportedFunction>
I know (how) I can achieve the same results with a singleton, but why
not just mark the entire class as "static" instead of marking every
single member as static?
I'm quite new to .NET (digging, gropin and mutilating around for about 8
months now), so, my questions are:
- Is it possible?
- If not, are there better solutions to my "problem"?
- Would it any how be a nice language/platform addition?
Thanks in advance,
Willem