Re: [Ikvm-developers] Using C# attributes from Java
Brought to you by:
jfrijters
|
From: Michael B. <md...@sa...> - 2013-04-27 00:02:51
|
On Fri, Apr 26, 2013 at 4:43 PM, Michael Bayne <md...@sa...> wrote:
> and then convert it to a DLL via IKVM, I get a disassembly that looks like
> this:
>
> .custom instance void
> [monotouch]MonoTouch.Foundation.RegisterAttribute::.ctor(string) = (
> 01 00 0B 41 70 70 44 65 6C 65 67 61 74 65 00 00 ) //
> ...AppDelegate..
>
More data:
If I compile the simple example attribute from the ye olde blog post:
public class Foo {
@cli.System.ThreadStaticAttribute.Annotation
private static int threadLocalCounter;
}
then convert that to a DLL via IKVM, and then decompile the resulting DLL,
I get a disassembly like so:
.custom instance void class
[mscorlib]System.ThreadStaticAttribute::'.ctor'() = (01 00 00 00 ) // ....
which has both "instance void class" and quoted '.ctor'.
So maybe it's something about the MonoTouch.Foundation.RegisterAttribute
that's causing IKVM to do something strange?
-- md...@sa...
|