Exemple #1
0
        private Tuple <IntPtr, JavaClass> GetField(string fieldName)
        {
            IntPtr reflectedField = _classClass.GetField(_reflectedClass, fieldName);

            if (reflectedField == IntPtr.Zero)
            {
                return(null);
            }
            IntPtr    reflectedFieldClass = _fieldClass.GetType(reflectedField);
            JavaClass javaClass           = new JavaClass(_vm, jniClass: IntPtr.Zero, reflectedClass: reflectedFieldClass, name: null);

            return(Tuple.Create(_vm.FromReflectedField(reflectedField), javaClass));
        }