Files
sharpcompress/tests/SharpCompress.Test/OperatingSystemExtensions.cs

12 lines
294 B
C#
Raw Permalink Normal View History

2024-04-23 08:52:10 +01:00
using System;
namespace SharpCompress.Test;
public static class OperatingSystemExtensions
{
2024-04-23 09:16:05 +01:00
public static bool IsWindows(this OperatingSystem os) =>
os.Platform == PlatformID.Win32NT
|| os.Platform == PlatformID.Win32Windows
|| os.Platform == PlatformID.Win32S;
2024-04-23 08:52:10 +01:00
}