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