Exemplo n.º 1
0
        public static T PlatformSwitch <T>(Func <T> windows, Func <T> nonWindows)
        {
            var platform = OSHelper.GetPlatform();

            var output = OSHelper.PlatformSwitch(platform, windows, nonWindows);

            return(output);
        }
Exemplo n.º 2
0
        public static Platform GetPlatform()
        {
            var osPlatform = OSHelper.GetOSPlatform();

            var platform = OSHelper.GetPlatform(osPlatform);

            return(platform);
        }
Exemplo n.º 3
0
        public static void PlatformSwitch(Action windows, Action nonWindows)
        {
            var platform = OSHelper.GetPlatform();

            OSHelper.PlatformSwitch(platform, windows, nonWindows);
        }