Sorry, too dumb to use List

I didn’t find any example on how to do a list. All I know is enum. At the end I need a simple foreach that use 3 variables one after another out of a list. But all I find about lists is:

public List<Transform> myList = new List<Transform>();

It’s nothing defined like a,b,c,d…

Something like that, but for me as a dumb person enum is a list because there is different values listed. So what to do and how to use? Is there any example or help?

It’s like an array but it allows you to add, remove, sort etc dynamically, i.e.:

List<string> myList = new List<string>();

// Add few items to the list
myList.Add("string1");
myList.Add("string2");
myList.Add("string3");
// This will result in the console window into 3 logs: string1, string2 and string3
foreach (string s in myList) {
   Debug.Log(s);
}

// Remove item "string2"
myList.Remove("string2");
// This time the result will be 2 logs: string1 and string3
foreach (string s in myList) {
   Debug.Log(s);
}

Microsoft: List<T> Class (System.Collections.Generic) | Microsoft Learn
At the end of the page has some samples.

enum and List are completely different things: enum is a fixed ordered list of number value, while a List is a list of object having the type you need (List, List, etc).

Enums are usually used to store a particular value to be checked somewhere else, in example you want to use an enum to maintain a game session state:

public enum eGameState {
   None,
   Playing,
   Paused,
   Ended
}

eGameState gameState = eGameState.None;

public void ChangeState (eGameState newState) {
   // ...do stuff before the game state changes...
   gameState = newState;
   // ...do stuff after the game state changed...
}

Everything working. The problem was not the list stuff, it was a big error in my string creation. So my first try to do the list way sure would never work. Sorry people!