I have an issue here.
I'm getting string which may looks like : "simple text : {1}, and date : {3}" -> getting this from database I want to replace "{1}" with employee.Name and "{3}" with Date.Now. Which number replace with what I know from the database, there are a lot of different types so I need to do that dynamically, so String replace should look like :
String.Replace("{someNumber}", extract from the database but it is a string but should be property like emplayee.Name).
I have no idea how to do that because function put "emplayee.Name" instead of "John", which is employeeName.
Here is a sample :
content = content.Replace(match.ToString(), emailVariableDictionary[ExtractIdFromMatch(match.ToString())].Variable);
emailVariableDictionary is a List which contains strings like "employee.Name, Date.Now" and like a said before String.Format put "emplyee.Name" instead of "John"