private static bool tryParseByFullName(string uiSymbol, out MetricPrefix result) { result = MetricSystemManager.GetAllMetricPrefixes().FirstOrDefault(u => u.UISymbol == uiSymbol); if (result == default) { return(false); } return(true); }
private static bool tryParseBySymbol(string symbol, out MetricPrefix result) { result = MetricSystemManager.GetAllMetricPrefixes().FirstOrDefault(q => q.Symbol == symbol); if (result == null) { return(false); } return(true); }
private static bool tryParseByName(string name, out MetricPrefix result) { result = MetricSystemManager.GetAllMetricPrefixes().FirstOrDefault(q => q.Name == name); if (result == null) { return(false); } return(true); }
/// <summary> /// Gets all the available metric prefixes. /// </summary> /// <returns>The available metric prefixes.</returns> public static IEnumerable <MetricPrefix> GetAll() => MetricSystemManager.GetAllMetricPrefixes();