Interchangeable value loop

for (int i = 0; i < myList.Count; i++)
{
if (myList == null)
{
myList = item;
break;
}
}
I want “i” to be an interchangeable number i.e. if I have 5 items I want 5 items to be added to myList. If have 7 it adds 7 etc.

Ok, after the informations that you provides me i think i figured out what you need. So, in order to add an item to your list you can use myList.Add(item)
If you want to add an item n times you can write

for (int i= 0; i < n; i++)
{
    myList.Add(item);
}

Where n is the number of times to add the item