string check = textbox.Text; <pre lang="xml">List<string> duplicate = new List<string>(); if (duplicate.Contains(check) == true) { int remove = Math.Max(0, duplicate.Count - 28); duplicate.RemoveRange(0, remove); duplicate.Insert(5, check); //duplicate.AddRange(final); }</pre>
Quote:List<string> duplicate = new List<string>();
empty
duplicate
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)