資源簡介
代碼片段和文件信息
/*************************************
版權(quán)所有:? 吉林省明日科技有限公司
完成日期: 2010-09-15
項目出處: 編程詞典
服務(wù)社區(qū): www.mingribook.com
學(xué)習(xí)社區(qū): www.mrbccd.com
*************************************/
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Drawing;
using?System.Windows.Forms;
using?System.Reflection;
namespace?FileManage
{
????partial?class?AboutBox?:?Form
????{
????????public?AboutBox()
????????{
????????????InitializeComponent();
????????}
????????#region?程序集屬性訪問器
????????public?string?Assemblytitle
????????{
????????????get
????????????{
????????????????//?獲取此程序集上的所有?title?屬性
????????????????object[]?attributes?=?Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblytitleAttribute)?false);
????????????????//?如果至少有一個?title?屬性
????????????????if?(attributes.Length?>?0)
????????????????{
????????????????????//?請選擇第一個屬性
????????????????????AssemblytitleAttribute?titleAttribute?=?(AssemblytitleAttribute)attributes[0];
????????????????????//?如果該屬性為非空字符串,則將其返回
????????????????????if?(titleAttribute.title?!=?““)
????????????????????????return?titleAttribute.title;
????????????????}
????????????????//?如果沒有?title?屬性,或者?title?屬性為一個空字符串,則返回?.exe?的名稱
????????????????return?System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Codebase);
????????????}
????????}
????????public?string?AssemblyVersion
????????{
????????????get
????????????{
????????????????return?Assembly.GetExecutingAssembly().GetName().Version.ToString();
????????????}
????????}
????????public?string?AssemblyDescription
????????{
????????????get
????????????{
????????????????//?獲取此程序集的所有?Description?屬性
????????????????object[]?attributes?=?Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute)?false);
????????????????//?如果?Description?屬性不存在,則返回一個空字符串
????????????????if?(attributes.Length?==?0)
????????????????????return?““;
????????????????//?如果有?Description?屬性,則返回該屬性的值
????????????????return?((AssemblyDescriptionAttribute)attributes[0]).Description;
????????????}
????????}
????????public?string?AssemblyProduct
????????{
????????????get
????????????{
????????????????//?獲取此程序集上的所有?Product?屬性
????????????????object[]?attributes?=?Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute)?false);
????????????????//?如果?Product?屬性不存在,則返回一個空字符串
????????????????if?(attributes.Length?==?0)
????????????????????return?““;
????????????????//?如果有?Product?屬性,則返回該屬性的值
????????????????return?((AssemblyProductAttribute)attributes[0]).Product;
????????????}
????????}
????????public?string?AssemblyCopyright
????????{
????????????get
????????????{
????????????????//?獲取此程序集上的所有?Copyright?屬性
????????????????object[]?attributes?=?Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute)?false);
????????????????//?如果?Copyright?屬性不存在,則返回一個空字符串
????????????????if?(a
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.?????47104??2010-09-15?14:50??FileManage\.vs\FileManage\v16\.suo
?????文件???????4346??2010-09-15?14:50??FileManage\Backup\FileManage\AboutBox.cs
?????文件??????10716??2008-06-27?13:13??FileManage\Backup\FileManage\AboutBox.Designer.cs
?????文件??????49720??2008-06-27?13:13??FileManage\Backup\FileManage\AboutBox.resx
?????文件??????40497??2010-09-15?14:50??FileManage\Backup\FileManage\CommonClass\ba
?????文件???????5641??2010-09-15?14:48??FileManage\Backup\FileManage\FileManage.csproj
?????文件??????18343??2010-09-15?14:50??FileManage\Backup\FileManage\frmMain.cs
?????文件??????44169??2008-08-18?16:31??FileManage\Backup\FileManage\frmMain.Designer.cs
?????文件??????10851??2008-08-18?16:31??FileManage\Backup\FileManage\frmMain.resx
?????文件???????5211??2010-09-15?14:50??FileManage\Backup\FileManage\frmRepeat.cs
?????文件??????17271??2008-07-07?14:28??FileManage\Backup\FileManage\frmRepeat.Designer.cs
?????文件???????5814??2008-07-07?14:28??FileManage\Backup\FileManage\frmRepeat.resx
?????文件???????4006??2010-09-15?14:50??FileManage\Backup\FileManage\frmSplit.cs
?????文件??????15053??2008-07-22?17:48??FileManage\Backup\FileManage\frmSplit.Designer.cs
?????文件???????6622??2008-07-22?17:48??FileManage\Backup\FileManage\frmSplit.resx
?????文件????????739??2010-09-15?14:49??FileManage\Backup\FileManage\Program.cs
?????文件???????1522??2010-09-15?14:50??FileManage\Backup\FileManage\Properties\AssemblyInfo.cs
?????文件???????2844??2010-01-28?09:09??FileManage\Backup\FileManage\Properties\Resources.Designer.cs
?????文件???????5612??2008-06-18?16:05??FileManage\Backup\FileManage\Properties\Resources.resx
?????文件???????1108??2010-01-28?09:09??FileManage\Backup\FileManage\Properties\Settings.Designer.cs
?????文件????????249??2008-06-18?16:05??FileManage\Backup\FileManage\Properties\Settings.settings
?????文件????????920??2010-01-28?09:10??FileManage\Backup\FileManage.sln
?????文件???????4346??2010-09-15?14:50??FileManage\FileManage\AboutBox.cs
?????文件??????10716??2008-06-27?13:13??FileManage\FileManage\AboutBox.Designer.cs
?????文件??????49720??2008-06-27?13:13??FileManage\FileManage\AboutBox.resx
?????文件????????706??2008-06-28?16:47??FileManage\FileManage\bin\Debug\clear.bat
?????文件??????93696??2010-09-15?14:50??FileManage\FileManage\bin\Debug\FileManage.exe
?????文件??????95744??2010-09-15?14:50??FileManage\FileManage\bin\Debug\FileManage.pdb
?????文件??????14328??2010-09-15?14:47??FileManage\FileManage\bin\Debug\FileManage.vshost.exe
?????文件????????490??2009-06-11?05:14??FileManage\FileManage\bin\Debug\FileManage.vshost.exe.manifest
............此處省略70個文件信息
- 上一篇:wpf在線更新
- 下一篇:C# JSON解析(Newtonsoft.Json)
評論
共有 條評論