Esempio n. 1
0
        public static string GetSolcVersion()
        {
            string result = IsWindows
                ? Win64Lib.version()
                : PosixLib.version();

            return(result);
        }
Esempio n. 2
0
        public static string GetSolcVersion()
        {
            switch (Platform)
            {
            case OsPlatform.Windows:
                return(Win64Lib.version());

            case OsPlatform.Linux:
                return(PosixLib.version());

            case OsPlatform.Mac:
                return(MacLib.version());
            }

            throw new InvalidOperationException("Unsupported platform.");
        }