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

            var platform = OSHelper.GetPlatform(osPlatform);

            return(platform);
        }
예제 #3
0
        public static void OSPlatformSwitch(Action windows, Action osx, Action linux)
        {
            var osPlatform = OSHelper.GetOSPlatform();

            OSHelper.OSPlatformSwitch(osPlatform, windows, osx, linux);
        }