C# Version GreaterThanOrEqual
Description
Version GreaterThanOrEqual
determines whether the
first specified Version object is greater than or equal to the second specified
Version object.
Syntax
Version.GreaterThanOrEqual
has the following syntax.
public static bool operator >=(
Version v1,
Version v2
)
Parameters
Version.GreaterThanOrEqual
has the following parameters.
v1
- The first Version object.v2
- The second Version object.
Returns
Version.GreaterThanOrEqual
method returns true if v1 is greater than or equal to v2; otherwise, false.
Example
/*from ww w. j a v a 2 s . c o m*/
using System;
class Sample
{
public static void Main()
{
Version interim = new Version(1,2,3,4);
Version interim1 = new Version(1,2,4,4);
Console.WriteLine(interim >= interim1);
}
}
The code above generates the following result.