.NET框架给了我们格式方式:
The .NET Framework gives us the Format method:
string s = string.Format("This {0} very {1}.", "is", "funny");
// s is now: "This is very funny."
我想一个格式化恢复功能,是这样的:
I would like an "Unformat" function, something like:
object[] params = string.Unformat("This {0} very {1}.", "This is very funny.");
// params is now: ["is", "funny"]
我知道类似的东西存在于ANSI-C库(的printf VS的