[Mono-dev] Strange .ctor() behaviour
Jb Evain
mono at evain.net
Sun Mar 5 10:37:18 EST 2006
Hi,
There's a bug in Cecil causing some mix between types.
Could you please provide a test case ?
Jb
On Mar 1, 2006, at 10:26 PM, vijaya raghava mutharaju wrote:
> Hi,
>
> Using Mono.Cecil, I inserted custom attributes into an
> assembly. Some of the classes in it are Clock, DisplayTime,
> Observer,..... The attribute is a string of type "MyAttribute". Now
> after inserting a value and disassembling the assembly, instead of a
> statement like the following:
>
> .custom instance void MyNameSpace.MyAttribute::.ctor() = {01 00
> ............} // Its value
>
>
> It gives
>
> .custom instance void AnotherNameSpace.Clock::.ctor() = {01 00
> ........} // value
>
> While inserting, I gave the correct type of the MyAttribute. The
> value I gave is correctly displayed. Its values is correct. Only the
> constructor part is the one not intended. There isn't any constructor
> even, that matches the above one.
>
>
> One more thing, if we use "ILdasm" to disassemble an assembly, is
> there any significance to the order in which it displays the types in
> the assembly. Got a doubt because "Clock" was displayed first and I
> didn't write it in the source code first.
>
>
> Thank you.
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
More information about the Mono-devel-list
mailing list