[Solved] How to compare number with all number in List not loop List?
Do you mean you want to add i to values if there is no i in that list? Use FindIndex to check if list contains i it will return the index. If it is not, it will return -1. List<int> values = new List<int>(); private void CheckCondition() { for (int i = 0; i < … Read more