摘要:
主要使用:ConfigurationSectionIConfigurationSectionHandler已被否决http://technet.microsoft.com/zh-cn/library/2tw134k3(v=vs.85).aspxhttp://www.cnblogs.com/aspnethot/articles/1408689.html 阅读全文
posted @ 2014-02-13 17:17
顺风车
阅读(885)
评论(0)
推荐(0)
摘要:
提供一种将值的类型转换为其他类型以及访问标准值和子属性的统一方法。自定义Converter:public class GenericListTypeConverter : TypeConverter { protected readonly TypeConverter typeConverter; public GenericListTypeConverter() { typeConverter = TypeDescriptor.GetConverter(typeof(T)); if (typeConv... 阅读全文
posted @ 2014-02-13 16:42
顺风车
阅读(7254)
评论(0)
推荐(0)
摘要:
在泛型类和泛型方法中产生的一个问题是,在预先未知以下情况时,如何将默认值分配给参数化类型 T:T 是引用类型还是值类型。 如果 T 为值类型,则它是数值还是结构http://msdn.microsoft.com/zh-cn/library/xwth0h0d.aspx //T a = default(T); int i = default(int); Console.WriteLine(i); Console.WriteLine(default(int)); Console.WriteL... 阅读全文
posted @ 2014-02-13 10:22
顺风车
阅读(302)
评论(0)
推荐(0)
浙公网安备 33010602011771号