String and complex data types in Map.xml for IKVM!

前端 未结 1 433
抹茶落季
抹茶落季 2021-01-25 19:19

I am using IKVM to transform my java .jar file to a .NET .dll file. I can create a property from the getter and setters of integer types .. But am not able to do so for string d

相关标签:
1条回答
  • 2021-01-25 19:49

    For non-primitive types the signature representation is "L" + type name + ";". Here's an example:

       <property name="Foo" sig="()Ljava.lang.String;">
         <getter name="getFoo" sig="()Ljava.lang.String;" />
         <setter name="setFoo" sig="(Ljava.lang.String;)V" />
       </property>
    

    For an array type, prefix the element type signature representation with "[".

    0 讨论(0)
提交回复
热议问题