I want to create a method that accepts a string MyString and a List of strings MyList.
MyString contains placeholders like {0}, {1} and so on... but I don't know in advance how many. Example: "I want to put something here: {0} and something there: {1}"
MyList contains the strings that must be substituted in MyString, in their correct place: the first string, with index 0, must be put in the placeholder {0}.
I would like to achieve this with String.Format but I can't understand how to pass MyString as a list of arguments.
Is this possible in VB.NET?
Thank you