if list does not contain then add c#

82

if list does not contain then add c# -

if (!myList.Contains("name"))
{
    myList.Add("name");
}

Comments

Submit
0 Comments