Exemple #1
0
 private static bool tryParseByFullName(string uiSymbol, out MetricSystem result)
 {
     result = MetricSystemManager.GetAllMetricSystems()
              .FirstOrDefault(ms => ms.FullName == uiSymbol);
     if (result == default)
     {
         return(false);
     }
     return(true);
 }
Exemple #2
0
 /// <summary>
 /// Gets all the available metric systems.
 /// </summary>
 /// <returns>The available metric systems.</returns>
 public static IEnumerable <MetricSystem> GetAll()
 => MetricSystemManager.GetAllMetricSystems();