摘要:
通过实现IFormatProvider, ICustomFormatter接口可以实现自定义的格式输现,这里有实现一个例子,以输出日期格式为例(显示今天、明天、后天和"x月x日"等)1、假设我们有多种显示日期格式的需求,我们可以定义一个枚举如下:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.C... 阅读全文
posted @ 2009-05-26 11:12
chenjunbiao
阅读(329)
评论(0)
推荐(0)