I get a string which is dynamically generated example: "Dynamic text {{parametro1}}, plus a piece of text {{parametro2}}."
I have a code similar to this in C #: where the name is the same as in braces and the value property is the one that needs to be inserted instead.
List<Parametro> parametros = new List<Parametro>(){
new Parametro(){
Nome="parametro1",
Valor="Programando em C#"
},
new Parametro(){
Nome="parametro2",
Valor="preciso de ajuda!"
}
}
The question is: how can I replace every stretch of string that I get, by the value of each parameter?