Re: Override static derived variable



"Joanna Carter \(TeamB\)" <joannac@xxxxxxxxxxxxxxx> wrote in
news:uFep1WOdFHA.3828@xxxxxxxxxxxxxxxxxxxx:
> But this doesn't work either as it appears that the only static
> constructor to be called in class A is X().
>
> I must admit that this is not as I would have expected. Does anyone
> know if this is a bug in beta 1 ?

What code are you using to instantiate them? Statics in .NET are not at all like in Delphi, and Im
constantly hitting roadblocks here. I understand why they did it the way they did, and it has some
advantages but its requires some royal work arounds sometimes.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/
.



Relevant Pages

  • Re: Static Vs Instance Data Access Methods
    ... By Non-default constructor do you jsut mean specifiying a constructor of ... > compiler throws in optimizations that make the code run upto 8 times ... > (read Scott Allen's article regarding statics in MSDN Mag). ...
    (microsoft.public.dotnet.framework.adonet)
  • RE: Static Constructor in ASP.NET app
    ... so no code can access the class statics until ... try to kill the thread, which would not die until the constructor completed, ... Now suppose the first request comes in at 11:00 am and tries to read ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: abstract static methods (again)
    ... because statics should remain non-inheritable, ... I like the idea of "interface constructor". ... semantics I am talking about with or without it. ...
    (comp.lang.java.programmer)
  • Re: evum constructor gotcha
    ... initialisation has not been done at the time the enum constructor ... You’d think statics should be ...
    (comp.lang.java.programmer)
  • Re: Application Startup Performance
    ... In VS this constructor doesn't fire ... I really like your idea of thread loading some stuff in the BG but right now ... app start to be more involved than perhaps it needs to be. ... do Statics play a role in pre-Mainperformance? ...
    (microsoft.public.dotnet.framework.compactframework)

Loading