I need to create a very long string in a program, and have been using String.Format. The problem I am facing is keeping track of all the numbers when you have more than 8-10 parameters.
Is it possible to create some form of overload that will accept a syntax similar to this?
String.Format("You are {age} years old and your last name is {name} ",
{age = "18", name = "Foo"});
How about the following, which works both for anonymous types (the example below), or regular types (domain entities, etc):
using: