PdfRpt.DataSources.SqlParametersParser.removeDuplicates C# (CSharp) Method

removeDuplicates() private static method

private static removeDuplicates ( MatchCollection ms ) : IList
ms System.Text.RegularExpressions.MatchCollection
return IList
        private static IList<string> removeDuplicates(MatchCollection ms)
        {
            var lstMatches = new List<string>();

            foreach (Match match in ms)
            {
                if (!lstMatches.Contains(match.Value))
                    lstMatches.Add(match.Value);
            }

            return lstMatches;
        }