C# Version Revision

Description

Version Revision gets the value of the revision component of the version number for the current Version object.

Syntax

Version.Revision has the following syntax.


public int Revision { get; }

Example

The following code example demonstrates the Version constructor, and Major, Minor, Build, Revision, MajorRevision, and MinorRevision properties.


/*ww w . j a  v  a  2 s.co m*/
using System;

class Sample 
{
    public static void Main() 
    {
    
        Version std = new Version(1, 2, 1234, 2);
    
        Console.WriteLine(std.Major);
        Console.WriteLine(std.Minor);
        Console.WriteLine(std.Build);
        Console.WriteLine(std.Revision);
    }
}

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