Пример #1
0
        public void Remove(UInt32 key)
        {
            int index = Keys.IndexOf(key);

            if (index > -1)
            {
                Values.RemoveAt(index);
                Keys.RemoveAt(index);
            }
        }
Пример #2
0
        /// <summary>
        /// Pops an item off the stack. If the stack is empty, it returns UInt32.MaxValue.
        /// </summary>
        /// <returns>The popped item or UInt32.MaxValue if the stack is empty.</returns>
        public UInt32 Pop()
        {
            int lastIndex = internalList.Count - 1;

            if (lastIndex < 0)
            {
                return(FOS_System.Stubs.UInt32.MaxValue);
            }

            UInt32 result = internalList[lastIndex];

            internalList.RemoveAt(lastIndex);
            return(result);
        }