private static void checkError(FanControlError result) { string error = string.Join(" + ", errors.Where(e => result.HasFlag(e.Key)).Select(e => e.Value)); if (!string.IsNullOrEmpty(error)) { throw new Exception(error); } }
private static void checkError(FanControlError result) { string error = string.Join(" + ", errors.Where(e => result.HasFlag(e.Key)).Select(e => e.Value)); if (!string.IsNullOrEmpty(error)) throw new Exception(error); }