C# Version Version(Int32, Int32, Int32, Int32)
Description
Version Version(Int32, Int32, Int32, Int32)
initializes
a new instance of the Version class with the specified major, minor, build,
and revision numbers.
Syntax
Version.Version(Int32, Int32, Int32, Int32)
has the following syntax.
public Version(/* w w w . ja v a 2s . c o m*/
int major,
int minor,
int build,
int revision
)
Parameters
Version.Version(Int32, Int32, Int32, Int32)
has the following parameters.
major
- The major version number.minor
- The minor version number.build
- The build number.revision
- The revision number.
Example
//from w w w . ja v a 2 s . com
using System;
class Sample
{
public static void Main()
{
Version interim = new Version(1,2,3,4);
Console.WriteLine(interim);
}
}
The code above generates the following result.