[Mono-dev] Are constructors class methods or not?

Chris Seaton chris at chrisseaton.com
Thu Apr 7 19:47:12 EDT 2011

When I disassemble a simple hello world C# program using monodis I have these two lines

>   .custom instance void class [mscorlib]System.Runtime.CompilerServices.RuntimeCompatibilityAttribute::'.ctor'() =  (

> 	IL_0001:  call instance void object::'.ctor'()

In the former the constructor is marked as class, in the latter it is not. Which is correct? Or does the place it is being used lead to the difference?

Are constructor methods class methods or not?


Chris Seaton
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20110408/0f75608c/attachment.html 

More information about the Mono-devel-list mailing list