CSharpStep

导航

文章分类 -  程序布置

在独立存储区存、取信息的方法。(整理自MSWebCast)
摘要:独立存储区(Isolated Storage) 一般用于存储临时信息。如窗口大小、位置等。IsolateStorage 在System.IO.IsolateStorage中。一、在独立存储区保存信息的方法。(一般用在Form_Close中)IsolatedStorageFile isFile = IsolatedStorageFile.GetStore( IsolatedStorageScope.... 阅读全文

posted @ 2006-06-20 14:16 NETWorker 阅读(466) 评论(0) 推荐(0)

在程序运行时获取AssemblyInfo中的信息(整理自MS WebCast)
摘要:通过Attribute类中的静态方法,获取AssemblyInfo中的信息.1获取Company信息: (返回类型为string)((AssemblyCompanyAttribute)Attribute.GetCustomAttribute(Assembly.GetExecutingAssembly() , typeof(AssemblyCompanyAttribute),true)).Compa... 阅读全文

posted @ 2006-06-20 11:44 NETWorker 阅读(396) 评论(0) 推荐(0)