Gets current platform identifier and version number.
using System; class Sample { public static void Main() { Console.WriteLine("OSVersion: {0}", Environment.OSVersion.ToString()); } }