c# Programming Glossary: icustomformatter
C#: File-size format provider http://stackoverflow.com/questions/128618/c-file-size-format-provider web public class FileSizeFormatProvider IFormatProvider ICustomFormatter public object GetFormat Type formatType if formatType typeof.. object GetFormat Type formatType if formatType typeof ICustomFormatter return this return null private const string fileSizeFormat..
How to create and use a custom IFormatProvider for DateTime? http://stackoverflow.com/questions/2382154/how-to-create-and-use-a-custom-iformatprovider-for-datetime public class MyDateFormatProvider IFormatProvider ICustomFormatter public object GetFormat Type formatType if formatType typeof.. object GetFormat Type formatType if formatType typeof ICustomFormatter return this return null public string Format string format object.. seems that the DateTime.ToString method does not honor the ICustomFormatter interface like the StringBuilder.Format method does as your..
Performance issue: comparing to String.Format http://stackoverflow.com/questions/761121/performance-issue-comparing-to-string-format format private IFormatProvider formatProvider null private ICustomFormatter customFormatter null the code in here very closely matches the..
|