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.





















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version