コード例 #1
0
        public unsafe void Insert(int targetIndex, PrimitiveValue value)
        {
            PrimitiveValue *valuePtr = &value;

            NativeMethods.insert_primitive(this, (IntPtr)targetIndex, new IntPtr(valuePtr), out var nativeException);
            nativeException.ThrowIfNecessary();
        }
コード例 #2
0
        public unsafe void Add(PrimitiveValue value)
        {
            PrimitiveValue *valuePtr = &value;

            NativeMethods.add_primitive(this, new IntPtr(valuePtr), out var nativeException);
            nativeException.ThrowIfNecessary();
        }
コード例 #3
0
        public unsafe int Find(PrimitiveValue value)
        {
            PrimitiveValue *valuePtr = &value;
            var             result   = NativeMethods.find_primitive(this, new IntPtr(valuePtr), out var nativeException);

            nativeException.ThrowIfNecessary();
            return((int)result);
        }