Пример #1
0
        public static void Ch6ModifyArrayChar()
        {
            var values = new char[5];

            for (int i = 0; i < values.Length; i++)
            {
                values[i] = 'B';
            }
            bool ret = Ch6Native.Ch6ModifyArrayChar(values);
        }
Пример #2
0
        public static void Ch6ModifyArrayInt()
        {
            var values = new int[5];

            for (int i = 0; i < values.Length; i++)
            {
                values[i] = 123;
            }
            bool ret = Ch6Native.Ch6ModifyArrayInt(values);
        }
Пример #3
0
        public static void Ch6ModifyArrayDog()
        {
            var values = new Ch6Dog[5];

            for (int i = 0; i < values.Length; i++)
            {
                values[i] = new Ch6Dog
                {
                    age  = 123,
                    name = "狗".PadRight(5, (char)0)
                };
            }
            bool ret = Ch6Native.Ch6ModifyArrayCh6Dog(values);
        }