我知道为了提供一个格式提供程序,我需要实现IFormatProvider
接口。
但是,如果我想将其绑定到特定区域性,该怎么办?怎么做?
System.Globalization.CultureInfo ci = new System.Globalization.CultureInfo("en-US");
someText.ToString(ci)
使用CultureInfo
.