[Serializable]
public class ApplicationVersion : IEquatable<ApplicationVersion>, IComparable<ApplicationVersion>
{
#region Fields
private string applicationName;
private int build;
private int major;
private int minor;
#endregion Fields
#region Properties
/// <summary>
/// The name of the application
/// </summary>
public string ApplicationName
{
get { return this.applicationName; }
set { this.applicationName = value; }
}
/// <summary>
/// The build version
/// </summary>
public int Build
{
get { return this.build; }
set { this.build = value; }
}
/// <summary>
/// The major version
/// </summary>
public int Major
{
get { return this.major; }
set { this.major = value; }
}
/// <summary>
/// The minor version
/// </summary>
public int Minor
{
get { return this.minor; }
set { this.minor = value; }
}
#endregion Properties
#region Constructors
public ApplicationVersion()
{
}
/// <summary>
///
/// </summary>
/// <param name="major"></param>
/// <param name="minor"></param>
/// <param name="build"></param>
public ApplicationVersion(string applicationName, int major, int minor, int build)
{
this.applicationName = applicationName;
this.major = major;
this.minor = minor;
this.build = build;
}
#endregion Constructors
}