• 大小: 0.16M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-13
  • 语言: 其他
  • 标签: 其他  

资源简介

SharpMap.zip

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SharpMap
{
    partial class AboutBox : Form
    {
        public AboutBox()
        {
            InitializeComponent();
        }

        #region 程序集特性访问器

        public string Assemblytitle
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblytitleAttribute) false);
                if (attributes.Length > 0)
                {
                    AssemblytitleAttribute titleAttribute = (AssemblytitleAttribute)attributes[0];
                    if (titleAttribute.title != ““)
                    {
                        return titleAttribute.title;
                    }
                }
                return System.IO.Path.GetFileNameWithoutExtension(Assembly.GetExecutingAssembly().Codebase);
            }
        }

        public string AssemblyVersion
        {
            get
            {
                return Assembly.GetExecutingAssembly().GetName().Version.ToString();
            }
        }

        public string AssemblyDescription
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyDescriptionAttribute) false);
                if (attributes.Length == 0)
                {
                    return ““;
                }
                return ((AssemblyDescriptionAttribute)attributes[0]).Description;
            }
        }

        public string AssemblyProduct
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyProductAttribute) false);
                if (attributes.Length == 0)
                {
                    return ““;
                }
                return ((AssemblyProductAttribute)attributes[0]).Product;
            }
        }

        public string AssemblyCopyright
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCopyrightAttribute) false);
                if (attributes.Length == 0)
                {
                    return ““;
                }
                return ((AssemblyCopyrightAttribute)attributes[0]).Copyright;
            }
        }

        public string AssemblyCompany
        {
            get
            {
                object[] attributes = Assembly.GetExecutingAssembly().GetCustomAttributes(typeof(AssemblyCompanyAttribute) false);
                if (attributes.Length == 0)
                {
                    return ““;
                }
                return ((AssemblyCompanyAttribute)attributes[0]).Company;
 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     文件         914  2013-07-07 10:45  SharpMap\SharpMap.sln
     文件       46592  2013-09-20 11:23  SharpMap\SharpMap.v11.suo
     目录           0  2013-07-08 13:00  SharpMap\SharpMap\
     文件        3074  2013-09-20 11:23  SharpMap\SharpMap\AboutBox.cs
     文件       10678  2013-09-20 11:23  SharpMap\SharpMap\AboutBox.Designer.cs
     文件       23831  2013-09-20 11:23  SharpMap\SharpMap\AboutBox.resx
     文件         187  2013-07-07 10:45  SharpMap\SharpMap\App.config
     目录           0  2013-07-07 10:47  SharpMap\SharpMap\bin\
     目录           0  2013-09-05 16:53  SharpMap\SharpMap\bin\Debug\
     文件       16896  2013-09-05 17:32  SharpMap\SharpMap\bin\Debug\BMap.Net.dll
     文件       65024  2013-09-05 17:32  SharpMap\SharpMap\bin\Debug\BMap.Net.pdb
     目录           0  2013-09-05 17:07  SharpMap\SharpMap\bin\Debug\HttpMap\
     文件        8415  2013-07-19 16:57  SharpMap\SharpMap\bin\Debug\HttpMap\api.js
     文件        1696  2013-09-05 17:15  SharpMap\SharpMap\bin\Debug\HttpMap\BMap.html
     文件       57856  2013-09-05 18:04  SharpMap\SharpMap\bin\Debug\SharpMap.exe
     文件         187  2013-07-07 10:45  SharpMap\SharpMap\bin\Debug\SharpMap.exe.config
     文件       48640  2013-09-05 18:04  SharpMap\SharpMap\bin\Debug\SharpMap.pdb
     文件       22984  2013-09-20 11:22  SharpMap\SharpMap\bin\Debug\SharpMap.vshost.exe
     文件         187  2013-07-07 10:45  SharpMap\SharpMap\bin\Debug\SharpMap.vshost.exe.config
     文件         490  2012-06-02 22:34  SharpMap\SharpMap\bin\Debug\SharpMap.vshost.exe.manifest
     目录           0  2013-07-07 10:47  SharpMap\SharpMap\bin\Release\
     文件       16958  2013-07-07 19:57  SharpMap\SharpMap\icon.ico
     文件        8767  2013-09-05 18:04  SharpMap\SharpMap\MainForm.cs
     文件       35040  2013-09-05 17:08  SharpMap\SharpMap\MainForm.Designer.cs
     文件       32146  2013-09-05 17:08  SharpMap\SharpMap\MainForm.resx
     目录           0  2013-07-07 10:45  SharpMap\SharpMap\obj\
     目录           0  2013-09-20 11:22  SharpMap\SharpMap\obj\Debug\
     文件       14224  2013-09-20 11:22  SharpMap\SharpMap\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6923  2013-09-05 17:35  SharpMap\SharpMap\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     文件       12300  2013-09-05 17:35  SharpMap\SharpMap\obj\Debug\SharpMap.AboutBox.resources
     文件        1502  2013-09-20 11:23  SharpMap\SharpMap\obj\Debug\SharpMap.csproj.FileListAbsolute.txt
............此处省略19个文件信息

评论

共有 条评论