C#
JianDom
这个作者很懒,什么都没留下…
展开
-
C# 操作注册表
//设置ie打印的边距 RegistryKey regKey = Registry.CurrentUser; string SubKeyPath = @"Software\Microsoft\Internet Explorer"; RegistryKey optionKey = regKey.OpenSu原创 2015-01-24 11:42:19 · 468 阅读 · 0 评论 -
C# 泛型 无法将类型xx隐式转换为“T”
直接奖泛型转为T是不能转换的 要先转Object 例: public static T GetValue(string inValue) { if (typeof(T) == typeof(Bitmap)) { return (T)(Object)new Bitmap(inValue);原创 2015-01-24 11:35:32 · 13958 阅读 · 4 评论