public static string GetSolcVersion() { string result = IsWindows ? Win64Lib.version() : PosixLib.version(); return(result); }
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."); }