zhiheyang

2013年5月20日

.net资源文件及卫星程序集使用

摘要: 代码结构如下:WinFormApp项目引用ResDll项目,Form1中使用ResDll中的资源源代码 阅读全文

posted @ 2013-05-20 22:28 zhiheyang 阅读(196) 评论(0) 推荐(0) 编辑

2013年3月26日

.net 数据库抽象类

摘要: connection:接口System.Data.IDbConnection抽象类System.Data.Common.DbConnection:IDbConnection具体数据库connection类继承自:DbConnection,IDbConnectionparameter:接口System.Data.IDataParameter接口System.Data.IDbDataParameter:IDataParameter抽象类System.Data.Common.DbParameter:IDbDataParameter, IDataParameter具体数据库parameter类继承自: 阅读全文

posted @ 2013-03-26 22:11 zhiheyang 阅读(254) 评论(0) 推荐(0) 编辑

2013年1月10日

.net配置文件内容结构

摘要: 1 <configuration> 2 <configsections> 3 <section name="SectionOne" type=""/> 4 <section name="SectionSecond" type=""/> 5 <section name="SectionThree" type=""/> 6 <section name="SectionFour" type=&qu 阅读全文

posted @ 2013-01-10 09:42 zhiheyang 阅读(167) 评论(0) 推荐(0) 编辑

2012年12月25日

ILMerge工具

摘要: ILMerge工具可以将多个程序集合并到一个.exe或.dll文件中去 阅读全文

posted @ 2012-12-25 21:44 zhiheyang 阅读(148) 评论(0) 推荐(0) 编辑

2012年12月19日

格式相关类

摘要: DateTimeFormatInfo类:定义如何根据区域性设置 DateTime 值的格式并显示这些值。标准日期时间格式字符串和自定义日期时间格式字符串(详细看msdn)NumberFormatInfo类:根据区域性定义如何设置数值格式以及如何显示数值。标准数字格式字符串和自定义数字格式字符串(详细看msdn)TextInfo类:定义特定于书写体系的属性和行为(如大小写)。CompareInfo类:实现一组方法进行区分区域性的字符串比较。 阅读全文

posted @ 2012-12-19 07:10 zhiheyang 阅读(109) 评论(0) 推荐(0) 编辑

2012年12月14日

datetimekind.unspecified理解

摘要: datetimekind.unspecified类型的DateTime表示一个相对的时间点,就是说它没有固定的初始时间标准,而只是时间点的描述ToLocalTime:// If inputDt.Kind is DateTimeKind.Unspecified, the conversion isperformed as if inputDt was universal time.ToUniversalTime:// If inputDt.Kind is DateTimeKind.Unspecified, the conversion is performed as if inputDt was 阅读全文

posted @ 2012-12-14 07:01 zhiheyang 阅读(489) 评论(0) 推荐(0) 编辑

2012年12月10日

.net资源相关类

摘要: System.Globalization.CultureInfoSystem.Resources.ResourceManagerSystem.Threading.Thread.CurrentThread.CurrentUICulture:当前UI文化,对应控制面板-区域和语言-键盘和语言-显示语言-选择显示语言(好像操作系统安装多个显示语言时才有这个选项)System.Threading.Thread.CurrentThread.CurrentCulture:当前区域文化,对应控制面板-区域和语言-格式-其他设置中的设置 (如其中的数字、货币格式设置对应culturinfo的NumberFor 阅读全文

posted @ 2012-12-10 20:49 zhiheyang 阅读(334) 评论(0) 推荐(0) 编辑

导航