public static T PlatformSwitch <T>(Func <T> windows, Func <T> nonWindows) { var platform = OSHelper.GetPlatform(); var output = OSHelper.PlatformSwitch(platform, windows, nonWindows); return(output); }
public static Platform GetPlatform() { var osPlatform = OSHelper.GetOSPlatform(); var platform = OSHelper.GetPlatform(osPlatform); return(platform); }
public static void PlatformSwitch(Action windows, Action nonWindows) { var platform = OSHelper.GetPlatform(); OSHelper.PlatformSwitch(platform, windows, nonWindows); }