开发者

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

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 data type in the java code. Can you please tell me what is the format to be used in the map.xml for 开发者_如何学运维string or complex data type for IKVM!!


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

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜