[Mono-dev] Fwd: Static Patch

Robert Jordan robertj at gmx.net
Fri Nov 10 19:50:26 EST 2006


Miguel Ángel Pérez wrote:
> But static classes can have a static constructor where you can initialize
> things.
> 
> http://msdn2.microsoft.com/en-us/library/79b3xss3.aspx
> 
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/csspec/html/vclrfcsharpspec_10_11.asp 

Both Convert & Math classes declare a private non-static ctor.
If you declare the class as "static", you must remove the ctor as
well. In your latest patch, the ctors were still there.

Robert




More information about the Mono-devel-list mailing list