示例#1
0
 public int this[string theme]
 {
     get
     {
         return(ThemesPontuations.FirstOrDefault(tp => tp.Theme.Equals(theme))?.Pontuation ?? 0);
     }
 }
示例#2
0
 public void AddPontuationForTheme(string theme, int points)
 {
     ThemesPontuations.Add(new ThemePontuation(theme, points));
 }