您可以在许多地方String.Format 间接使用:秘密是寻找带有签名的重载string format, params object[] args,例如:
Console.WriteLine(String.Format("{0} - {1}", name, value));
可以替换为较短的版本:
Console.WriteLine("{0} - {1}", name, value);
还有其他方法也可以使用String.Format例如:
Debug.WriteLine(); // 和Print() StringBuilder.AppendFormat();