Hi Alan
Thanks for your response (and packing it into the tinyurl)
There are many talks about this issue but finding the answer for the
design-decisions of why not having static inheritance and contracts
(interface declaration) is like finding a needle in a hay stack
According to the discussion - the clr DOES support it, but not csharp
The question is somewhat academic - why?
For example:
I want to override the Console.WriteLine(string) without rewriting
the whole class
My app should get something like static ref to a class that
implements IConsole or inherits from Console ...
But Console methods are static...
Either the language designer deprive statics (and thus Console class
should be a singleton rather than static) or it should support OOD for
statics.
I must be missing something (as brighter people designed this) - what
is it that I miss?
Anyway
Thanks a lot for your pointer
Loy
Alan Pretre wrote:
Quote:
"Loy" <l.oyolox (AT) gmail (DOT) com> wrote in message
news:1155803561.460559.57600 (AT) 75g2000cwc (DOT) googlegroups.com...
Many times I wish to define a static method interface to a hierarchy of
classes
There are quite a few discussions about this over in the C# n.g. Take a
look at these: http://tinyurl.com/oxtb3
If none of these answer your questions, then I would suggest that you repost
to m.p.d.languages.csharp.
-- Alan |