Exemple #1
0
            /// <summary>
            /// Remove the first element from the list of results.
            /// </summary>
            public void RemoveFirst()
            {
                if (BackingDictionary.Count > 0)
                {
                    object key        = BackingDictionary.GetKey(0);
                    int    firstCount = (int)BackingDictionary[key];

                    if (firstCount == 1)
                    {
                        BackingDictionary.RemoveAt(0);
                    }
                    else
                    {
                        BackingDictionary[key] = firstCount - 1;
                    }
                    --Count;
                }
            }