i would like to be able to pass in a format string at runtime and have it applied against a nominal data value.
for example, the incoming format string could look anything like the standard c# format types:
{0:c}, {0:d}, #,###,###
i want to be able to accept the string value and apply the format at runtime. some pseudocode
private string FormatAtRunTime(formatstring)
{
string formattedOutput = "";
decimal datavalue = 2.4600;
datavalue.ToString(formatstring); ??????
return formattedOutput;
}