AnalyticsUnlimited.Client_WPF.DGValuesForm.isDuplicate C# (CSharp) Method

isDuplicate() private method

private isDuplicate ( string newl ) : bool
newl string
return bool
        private bool isDuplicate(string newl)
        {
            bool found = false;
            int totitem = ValLstBox.Items.Count;
            foreach (string item in ValLstBox.Items)
            {
                string oldl = item;
               
                if (oldl.Equals(newl))
                {
                    found = true;
                    break;
                }

            }
            return found;
        }