Answers for "get os on c#"

C#
0

c# get os version

// Save the OS info to an variable
OperatingSystem os = Environment.OSVersion;
// Print the OS info to the console
Console.WriteLine($"platform:       {os.Platform}n" +
                  $"version:        {os.Version}n" +
                  $"version string: {os.VersionString}");
Posted by: Guest on July-30-2020

C# Answers by Framework

Browse Popular Code Answers by Language