/// <summary> /// Get current operation system platform information<br /> /// 获取当前操作系统平台信息(<see cref="OSPlatform"/>) /// </summary> /// <returns></returns> // ReSharper disable once InconsistentNaming public virtual OSPlatform GetCurrentOSPlatform() { if (OSPlatformHelper.IsMacOS()) { return(OSPlatform.OSX); } if (OSPlatformHelper.IsWindows()) { return(OSPlatform.Windows); } return(OSPlatform.Linux); }