April 2002
Intermediate to advanced
1024 pages
23h 26m
English
This structure simply provides a wrapper around arbitrary version information. Listing B.18 shows some of its functionality (version.cs).
public class VersionMain
{
static void Main(string [] args)
{
Version v1 = new Version("1.2.3.4");
Version v2 = new Version(1,2,3,5);
Console.WriteLine("{0} {1} ", v1, v2);
Console.WriteLine("v1 > v2? {0} ", v1 > v2);
}
}
|
Read now
Unlock full access