Spring – Blame information for rev 1

Subversion Repositories:
Rev:
Rev Author Line No. Line
1 office 1 using System.Reflection;
2 using System.Runtime.InteropServices;
3  
4 namespace Spring.Utilities
5 {
6 public static class Constants
7 {
8 #region Static Fields and Constants
9  
10 public static readonly string AssemblyGuid =
11 ((GuidAttribute) Assembly.GetEntryAssembly()
12 .GetCustomAttributes(typeof(GuidAttribute), true)[0]).Value;
13  
14 public static readonly string AssemblyName = Assembly.GetEntryAssembly()
15 .GetName()
16 .Name;
17  
18 public static readonly string AssemblyVersion = Assembly.GetEntryAssembly()
19 .GetName()
20 .Version.ToString();
21  
22 #endregion
23 }
24 }