Exemple #1
0
        public object Get(object searchKey)
        {
            object ret;

            using (NativeImports.TioDataConverter sk = NativeImports.TioDataConverter.FromObject(searchKey),
                   k = new NativeImports.TioDataConverter(),
                   v = new NativeImports.TioDataConverter(),
                   m = new NativeImports.TioDataConverter())
            {
                int result;

                result = NativeImports.tio_container_get(
                    _nativeContainerHandle,
                    ref sk._tiodata,
                    out k._tiodata,
                    out v._tiodata,
                    out m._tiodata);

                ret = v.AsObject();
            }

            return(ret);
        }
Exemple #2
0
        public object Get(object searchKey)
        {
            object ret;

            using(NativeImports.TioDataConverter sk = NativeImports.TioDataConverter.FromObject(searchKey),
                  k = new NativeImports.TioDataConverter(),
                  v = new NativeImports.TioDataConverter(),
                  m = new NativeImports.TioDataConverter())
            {
                int result;

                result = NativeImports.tio_container_get(
                    _nativeContainerHandle,
                    ref sk._tiodata,
                    out k._tiodata,
                    out v._tiodata,
                    out m._tiodata);

                ret = v.AsObject();
            }

            return ret;
        }