摘要: 关于产生错误“The as operator must be used with a reference type or nullable type ('System.DateTime' is a non-nullable value type)”今天写数据转换器,需要将按照时间值显示不同的时间格式字符串。结果在Convert里发现这么写报错。 public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { DateTime time = value as 阅读全文
posted @ 2011-08-30 11:01 longlww 阅读(487) 评论(4) 推荐(0)