I have class "CF" that implements IFormattable interface. I can convert it to string
var cf = new CF(); string str = cf.ToString("MYFORMAT", CultureInfo.InvariantCulture) or
str = String.Format("{0:MYFORMAT}", cf);
the problem is that "MYFORMAT" is a parameter. so i can still use
string fmt = "FORMAT"; string str = cf.ToString(fmt, CultureInfo.InvariantCulture)
Is it possible still use String.Format for formatting? That doesnt work
str = String.Format("{0:{1}}", cf, format)
View Complete Post