ULSAlgorithms 1.1.0-g3e5595996d
High-performance exact and heuristic algorithms for uncapacitated lot sizing
Loading...
Searching...
No Matches
ULSAlgorithmsInfo.cs
Go to the documentation of this file.
1using System.Reflection;
2
3namespace ULSAlgorithms;
4
5/// <summary>
6/// Exposes stable runtime metadata for the ULSAlgorithms assembly.
7/// </summary>
8/// <remarks>
9/// This type is intentionally infrastructure-only. No ULS model or algorithm is
10/// introduced in the 0.1.0 bootstrap release.
11/// </remarks>
12public static class ULSAlgorithmsInfo
13{
14 private static readonly Assembly CurrentAssembly = typeof(ULSAlgorithmsInfo).Assembly;
15
16 /// <summary>
17 /// Gets the assembly name.
18 /// </summary>
19 public static string Name => CurrentAssembly.GetName().Name ?? "ULSAlgorithms";
20
21 /// <summary>
22 /// Gets the CLR assembly version.
23 /// </summary>
24 public static Version Version =>
25 CurrentAssembly.GetName().Version ?? new Version(0, 0, 0, 0);
26
27 /// <summary>
28 /// Gets the informational version generated by the repository versioning infrastructure.
29 /// </summary>
30 public static string InformationalVersion =>
31 CurrentAssembly
32 .GetCustomAttribute<AssemblyInformationalVersionAttribute>()
34 ?? Version.ToString();
35}
Exposes stable runtime metadata for the ULSAlgorithms assembly.
static string InformationalVersion
Gets the informational version generated by the repository versioning infrastructure.
static Version Version
Gets the CLR assembly version.
static string Name
Gets the assembly name.