public static void LuaArrayTest01() { var arr = new LuaArray <int>(); arr.Add(123); var indexValue = arr[123]; arr[456] = indexValue; }
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); }