Exemple #1
0
        public static void LuaArrayTest01()
        {
            var arr = new LuaArray <int>();

            arr.Add(123);
            var indexValue = arr[123];

            arr[456] = indexValue;
        }
Exemple #2
0
    public LuaUString(String s)
    {
        List <LuaValue> Points = new List <LuaValue>();

        for (Int32 idx = 0; idx < s.Length; idx++)
        {
            Int32 CP = Char.ConvertToUtf32(s, idx);
            Points.Add(new LuaInteger(CP, LuaIntegerStyle.Hexadecimal));
            if (Char.IsSurrogatePair(s, idx))
            {
                idx++;
            }
        }
        _Array = new LuaArray(Points);
    }