IronLua.Runtime.LuaTable.GetValue C# (CSharp) Method

GetValue() private method

private GetValue ( object key ) : object
key object
return object
        internal object GetValue(object key)
        {
            var pos = FindEntry(key);
            return pos < 0 ? null : entries[pos].Value;
        }

Usage Example

Exemplo n.º 1
0
        public static Varargs IPairs(LuaTable t)
        {
            var length = t.Length();
            Func<double, object> func =
                index =>
                    {
                        index++;
                        return index > length ? null : new Varargs(index, t.GetValue(index));
                    };

            return new Varargs(func, t, 0.0);
        }
All Usage Examples Of IronLua.Runtime.LuaTable::GetValue