string.Format has following method signature
string.Format(format, params, .., .. , ..);
I want to pass custom format each time like
As long as you're only passing in 1 argument, you can look search custFormat for {0}. If you don't find it, it's invalid.
custFormat
{0}