Esempio n. 1
0
        public static Value ConvertToValue(JNIEnv env, bool[] value)
        {
            if (value == null)
            {
                return(Value.Null);
            }
            int            length = value.Length;
            JniLocalHandle res    = env.NewBooleanArray(length);

            env.SetBooleanArrayRegion(res, 0, length, value);
            return(new Value {
                _object = res
            });
        }