PageRenderTime 10ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/Main/src/Xbap/DynamicDataDisplay.Xbap.Samples/Internals/Models/ReleaseVersion.cs

#
C# | 28 lines | 25 code | 3 blank | 0 comment | 0 complexity | 63270af735e78946c4cbcc556981545a MD5 | raw file
 1using System;
 2using System.Collections.Generic;
 3using System.Linq;
 4using System.Text;
 5using System.ComponentModel;
 6
 7namespace Microsoft.Research.DynamicDataDisplay.Samples.Internals.Models
 8{
 9	[TypeConverter(typeof(VersionTypeConverter))]
10	public class ReleaseVersion
11	{
12		public ReleaseVersion(int major, int minor, int revision)
13		{
14			this.Major = major;
15			this.Minor = minor;
16			this.Revision = revision;
17		}
18
19		public int Major { get; set; }
20		public int Minor { get; set; }
21		public int Revision { get; set; }
22
23		public override string ToString()
24		{
25			return String.Format("{0}.{1}.{2}", Major, Minor, Revision);
26		}
27	}
28}