Exemplo n.º 1
0
 private static string GetLabelText(this LanguageLabels me, string resourceKey) =>
 me.Labels.SingleOrDefault(l => l.ResourceKey == resourceKey)?.Text ?? resourceKey;
Exemplo n.º 2
0
 public static IDictionary <string, string> Texts(this LanguageLabels me) => me.Labels.ToDictionary(v => v.ResourceKey, v => v.Text);