Search code examples
c#javajni4net

Convert a java.lang.Object to .net obejct with jni4net


How can I convert the double value of a jni4net proxy class Object to .NET double? Simple Convert.ToDouble(o) does not work, because it is nt of type IConvertible.


Solution

  • Try to cast it to java.lang.Double on .NET side first. then the conversion to double is defined afaik.