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

            var platform = OSHelper.GetPlatform(osPlatform);

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

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