Example #1
0
        public static string GetSolcLicense()
        {
            string result = IsWindows
                ? Win64Lib.license()
                : PosixLib.license();

            return(result);
        }
Example #2
0
        public static string GetSolcLicense()
        {
            switch (Platform)
            {
            case OsPlatform.Windows:
                return(Win64Lib.license());

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

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

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