mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-24 18:28:42 -10:00
* AssemblyFileVersionAttribute.cs (.ctor): Add argument checking. svn path=/trunk/mcs/; revision=24517
33 lines
577 B
C#
33 lines
577 B
C#
//
|
|
// System.Reflection.AssemblyFileVersionAttribute.cs
|
|
//
|
|
// Author: Duncan Mak ([email protected])
|
|
//
|
|
// (C) Ximian, Inc. http://www.ximian.com
|
|
//
|
|
|
|
namespace System.Reflection
|
|
{
|
|
[AttributeUsage (AttributeTargets.Assembly)]
|
|
public sealed class AssemblyFileVersionAttribute : Attribute
|
|
{
|
|
// Field
|
|
private string name;
|
|
|
|
// Constructor
|
|
public AssemblyFileVersionAttribute (string version)
|
|
{
|
|
if (version == null)
|
|
throw new ArgumentNullException ("version");
|
|
|
|
name = version;
|
|
}
|
|
|
|
// Property
|
|
public string Version
|
|
{
|
|
get { return name; }
|
|
}
|
|
}
|
|
}
|