示例#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);
        }
示例#2
0
        public static Platform GetPlatform()
        {
            var osPlatform = OSHelper.GetOSPlatform();

            var platform = OSHelper.GetPlatform(osPlatform);

            return(platform);
        }
示例#3
0
        public static void PlatformSwitch(Action windows, Action nonWindows)
        {
            var platform = OSHelper.GetPlatform();

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