UIAutomation.ExecutionPlan.DecreaseMaxCount C# (CSharp) Method

DecreaseMaxCount() static private method

static private DecreaseMaxCount ( int newCount ) : void
newCount int
return void
        internal static void DecreaseMaxCount(int newCount)
        {
            if (newCount < HighlightersQueue.Count) {
                while (newCount < HighlightersQueue.Count) {
                    Highlighter highlighterToBeDisposed = 
                        HighlightersQueue.Dequeue();
                    highlighterToBeDisposed.Dispose();
                }
            }
            HighlightersMaxCount = newCount;
        }