Extensions.cs 281 B

123456789
  1. using System.Collections.Generic;
  2. namespace UnitySVG {
  3. public static class Extensions {
  4. public static string GetValue<TKey>(this Dictionary<TKey, string> dictionary, TKey key) {
  5. return dictionary.ContainsKey(key) ? dictionary[key] : string.Empty;
  6. }
  7. }
  8. }