private static bool IsFSharpType(java.lang.Class scanClass) { int requiredInterfaceCount = 0; foreach (var ifc in scanClass.getInterfaces()) { if (ifc == (java.lang.Class) typeof(System.Collections.IStructuralEquatable) || ifc == (java.lang.Class) typeof(System.Collections.IStructuralComparable) || ifc == (java.lang.Class) typeof(System.IComparable)) { requiredInterfaceCount++; } } return(requiredInterfaceCount >= 3); }
private javaClass GetPointerClass() { javaClass pointerClass = method.getClass(); string pointerClassName = pointerClass.getName(); if (pointerClassName == "java.lang.Integer") { return(java.lang.Integer.TYPE); } else if (pointerClassName == "java.lang.Long") { return(java.lang.Long.TYPE); } else { return(pointerClass.getInterfaces()[0]); } }