Exemplo n.º 1
0
        /// <summary>
        /// Returns first free index slot to be used
        /// </summary>
        public CollectionIndex GetFreeIndex()
        {
            for (byte i = 0; i < this.Indexes.Length; i++)
            {
                if (this.Indexes[i].IsEmpty)
                {
                    return(this.Indexes[i]);
                }
            }

            throw LiteException.IndexLimitExceeded(this.CollectionName);
        }