For that, you could use a Dictionary
where the int
is the key.
new Dictionary<int, string>();
If you really want to use a list, it could be a List<Tuple<int,string>>()
but, Tuple
class is readonly, so you have to recreate the instance to modifie it.