public static System.Type GetType(java.lang.Object obj) { if (obj is IGenericObject genericObject) { return(genericObject.GetType()); } return(system.RuntimeType.GetType(obj.getClass())); }