当前位置: 首页>>代码示例>>C#>>正文


C# Assembly.GetDescription方法代码示例

本文整理汇总了C#中System.Reflection.Assembly.GetDescription方法的典型用法代码示例。如果您正苦于以下问题:C# Assembly.GetDescription方法的具体用法?C# Assembly.GetDescription怎么用?C# Assembly.GetDescription使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Reflection.Assembly的用法示例。


在下文中一共展示了Assembly.GetDescription方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: AboutBox

        public AboutBox(Assembly asm)
        {
            var asmName = asm.GetName();
            this.AppName = asmName.Name;
            this.AppDescription = asm.GetDescription();
            this.Version = asm.GetInformationalVersion();
            this.Copyright = asm.GetCopyright();
            //this.AppIcon = ShellIcon.GetIconImageSource(asm.Location, IconSize.Large);
            //this.Loaded += this.LoadedHandler;

            this.InitializeComponent();
        }
开发者ID:catwalkagogo,项目名称:Heron,代码行数:12,代码来源:AboutBox.xaml.cs

示例2: AsmInfo

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="assembly"></param>
        public AsmInfo(Assembly assembly) {
            assembly.ShouldNotBeNull("assembly");

            FullName = assembly.FullName;
            AssemblyName = assembly.GetName();

            // NOTE : CodeBase는 동적으로 Loading 한 Assembly에 대해서는 값을 조회할 수 없다.
            // this.CodeBase = assembly.CodeBase;
            Company = assembly.GetCompany();
            Configuration = assembly.GetConfiguration();
            Copyright = assembly.GetCopyright();
            Culture = assembly.GetCulture();
            DefaultAlias = assembly.GetDefaultAlias();
            Description = assembly.GetDescription();
            InfomationalVersion = assembly.GetInformationalVersion();
            Product = assembly.GetProduct();
            Title = assembly.GetTitle();
            Trademark = assembly.GetTrandemark();
            Version = AssemblyName.Version;
            Win32FileVersion = assembly.GetFileVersion();
        }
开发者ID:debop,项目名称:NFramework,代码行数:25,代码来源:AsmInfo.cs

示例3: CreateToolTip

 private string CreateToolTip(Assembly assembly)
 {
     return string.Format("{0} {1}\r\n{2}",
         assembly.GetTitle(true), assembly.GetName().Version.ToString(), assembly.GetDescription());
 }
开发者ID:sagar1589,项目名称:Delta.Cryptography,代码行数:5,代码来源:WindowsFormsAboutServiceForm.cs

示例4: CreateItem

        private ListViewItem CreateItem(Assembly assembly)
        {
            try
            {
                var title = assembly.GetTitle(true);
                var version = assembly.GetName().Version.ToString();
                var path = assembly.GetLocation();

                var item = new ListViewItem();
                item.Text = title;
                item.Tag = assembly;                
                item.SubItems.Add(version);
                item.SubItems.Add(path);
                // ODT: this seems not to work properly: no tooltips are displayed...
                item.ToolTipText = string.Format("{0} {1}\r\n{2}",
                    title, version, assembly.GetDescription()); 
                return item;
            }
            catch (Exception ex)
            {
                This.Logger.Error(ex);
                return null;
            }
        }
开发者ID:sagar1589,项目名称:Delta.Cryptography,代码行数:24,代码来源:WindowsFormsAboutServiceForm.cs

示例5: GetAssemblyDescription

 private string GetAssemblyDescription(Assembly assembly)
 {
     return assembly.GetDescription();
 }
开发者ID:sagar1589,项目名称:Delta.Cryptography,代码行数:4,代码来源:WindowsFormsAboutService.cs

示例6: WriteWelcomeMessage

 private static void WriteWelcomeMessage(Assembly asm)
 {
     Console.WriteLine();
     Console.WriteLine("{0}. v{1}", asm.GetTitle(), asm.GetVersion());
     Console.WriteLine(asm.GetDescription());
     Console.WriteLine();
 }
开发者ID:modulexcite,项目名称:WebSync,代码行数:7,代码来源:Program.cs


注:本文中的System.Reflection.Assembly.GetDescription方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。