42 lines
1.4 KiB
C#
42 lines
1.4 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.Reflection
|
|
{
|
|
/// <summary>Instructs a compiler to use a specific version number for the Win32 file version resource. The Win32 file version is not required to be the same as the assembly's version number.</summary>
|
|
// Token: 0x02000229 RID: 553
|
|
[ComVisible(true)]
|
|
[AttributeUsage(AttributeTargets.Assembly, Inherited = false)]
|
|
public sealed class AssemblyFileVersionAttribute : Attribute
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Reflection.AssemblyFileVersionAttribute" /> class, specifying the file version.</summary>
|
|
/// <param name="version">The file version. </param>
|
|
/// <exception cref="T:System.ArgumentNullException">
|
|
/// <paramref name="version" /> is null. </exception>
|
|
// Token: 0x06001D6D RID: 7533 RVA: 0x0006E168 File Offset: 0x0006C368
|
|
public AssemblyFileVersionAttribute(string version)
|
|
{
|
|
if (version == null)
|
|
{
|
|
throw new ArgumentNullException("version");
|
|
}
|
|
this.name = version;
|
|
}
|
|
|
|
/// <summary>Gets the Win32 file version resource name.</summary>
|
|
/// <returns>A string containing the file version resource name.</returns>
|
|
// Token: 0x17000547 RID: 1351
|
|
// (get) Token: 0x06001D6E RID: 7534 RVA: 0x0006E188 File Offset: 0x0006C388
|
|
public string Version
|
|
{
|
|
get
|
|
{
|
|
return this.name;
|
|
}
|
|
}
|
|
|
|
// Token: 0x040009E6 RID: 2534
|
|
private string name;
|
|
}
|
|
}
|