Пример #1
0
        private bool IsConsistentQuoting(System.Collections.ObjectModel.Collection <CompletionResult> matches)
        {
            int quotedCompletions = matches.Count(match => IsQuoted(match.CompletionText));

            return
                (quotedCompletions == 0 ||
                 (quotedCompletions == matches.Count &&
                  quotedCompletions == matches.Count(
                      m => m.CompletionText[0] == matches[0].CompletionText[0])));
        }