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