Interfaces cannot contain static members because members declared in an
interface are inheretly virtual since their polymorphic implementation is
assumed. And a static member cannot be virtual.
--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Test Studio
http://www.x-unity.net/teststudio.aspx
Bring the power of unit testing to VS .NET IDE
"TruongLapVi" <truonglapvi@hotmail.com> wrote in message
news:e3%23pluf8DHA.2576@TK2MSFTNGP11.phx.gbl...[color=blue][color=green]
> > A static membre belongs to a particular class. An interface is not a[/color]
> class.[color=green]
> > Even so, interfaces are not allowed to have method definitions. That's[/color][/color]
an[color=blue][color=green]
> > implementation detail.[/color]
>
> I think that static member is not instance member, ie we needn't creat new
> instance for calling static member, so I expect that C# should support[/color]
this[color=blue]
> feature.
>
> Thank for your answer.
>
>[/color]