LuaInterface.LuaObjectPool.TryGetValue C# (CSharp) Method

TryGetValue() public method

public TryGetValue ( int index ) : object
index int
return object
        public object TryGetValue(int index)
        {
            if (index > 0 && index < count)
            {
                return list[index].obj;
            }

            return null;
        }

Usage Example

コード例 #1
0
 public object GetObject(int udata)
 {
     return(objects.TryGetValue(udata));
 }
All Usage Examples Of LuaInterface.LuaObjectPool::TryGetValue