mirror of
https://github.com/StockSharp/StockSharp.git
synced 2026-12-04 00:21:31 +00:00
48 lines
1.1 KiB
C#
48 lines
1.1 KiB
C#
namespace StockSharp.Localization;
|
|
|
|
using System;
|
|
using System.Reflection;
|
|
|
|
using Ecng.Common;
|
|
|
|
/// <summary>
|
|
/// Information for an assembly manifest.
|
|
/// </summary>
|
|
public static class ProjectDescriptions
|
|
{
|
|
static ProjectDescriptions()
|
|
{
|
|
var asm = typeof(ProjectDescriptions).Assembly;
|
|
|
|
Company = asm.GetAttribute<AssemblyCompanyAttribute>()?.Company;
|
|
Product = asm.GetAttribute<AssemblyProductAttribute>()?.Product;
|
|
Copyright = asm.GetAttribute<AssemblyCopyrightAttribute>()?.Copyright;
|
|
Trademark = asm.GetAttribute<AssemblyTrademarkAttribute>()?.Trademark;
|
|
Version = asm.GetName().Version;
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets company information.
|
|
/// </summary>
|
|
public static readonly string Company;
|
|
|
|
/// <summary>
|
|
/// Gets product information.
|
|
/// </summary>
|
|
public static readonly string Product;
|
|
|
|
/// <summary>
|
|
/// Gets copyright information.
|
|
/// </summary>
|
|
public static readonly string Copyright;
|
|
|
|
/// <summary>
|
|
/// Gets trademark information.
|
|
/// </summary>
|
|
public static readonly string Trademark;
|
|
|
|
/// <summary>
|
|
/// Gets version information.
|
|
/// </summary>
|
|
public static readonly Version Version;
|
|
} |