Reference Implementation for IFormattable
问题 Is there a good reference implementation for IFormattable? I plan to have at least one custom IFormatProvider for my object, and I want to make sure that the wiring is correct for the different possible parameter sets passed to IFormattable.ToString(string, IFormatProvider) . What I have so far: public class MyDataClass : IFormattable { /// <seealso cref="IFormattable.ToString(string, IFormatProvider)"/> public string ToString(string format, IFormatProvider formatProvider) { ICustomFormatter