How to check the OS version at runtime, e.g. on Windows or Linux, without using a conditional compilation statement How to check the OS version at runtime, e.g. on Windows or Linux, without using a conditional compilation statement windows windows