Is 2003 Vista Or Greater

image_pdfimage_print
   
 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


  internal class OSHelper
  {
    internal static bool Is2003VistaOrGreater { get { return Environment.OSVersion.Version.CompareTo(new Version(5, 2)) >= 0; } }
    internal static bool IsVistaOrGreater { get { return Environment.OSVersion.Version.CompareTo(new Version(6, 0)) >= 0; } }
  }