6
I get a string dynamically generated example: "Dynamic text {{parametro1}} plus a piece of text {{parametro2}}".
I have in C# a code similar to this: where the name is the same that is between keys and the value property is the one that needs to be inserted in place.
List<Parametro> parametros = new List<Parametro>(){
new Parametro(){
Nome="parametro1",
Valor="Programando em C#"
},
new Parametro(){
Nome="parametro2",
Valor="preciso de ajuda!"
}
}
How can I replace each section of string I receive at the value of each parameter?
I don’t quite understand what you want and what your problem is. You could be more specific?
– gato
I want to replace the values that are between keys with the value that is in the parameter class value property .
– Filippe R.
however I am not aware of how many keys will be in the text and the values I will need to replace. The text and values are dynamic
– Filippe R.