public void AddRelease(string iValue) { if (Release == null || string.IsNullOrEmpty(iValue)) { return; } var isExist = false; foreach (var loop in Release) { if (!iValue.Equals(loop)) { continue; } isExist = true; break; } if (isExist == false) { Release.Add(iValue); } }