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

江枫思渺然 提交于 2019-12-20 05:37:06

问题


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!!


回答1:


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 "[".



来源:https://stackoverflow.com/questions/4687290/string-and-complex-data-types-in-map-xml-for-ikvm

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!