Exemple #1
0
        public Present GetPresentWithLeastMagic()
        {
            Present present = this.presents.OrderBy(p => p.Magic).First();

            return(present);
        }
Exemple #2
0
        public Present GetPresent(string name)
        {
            Present present = this.presents.FirstOrDefault(p => p.Name == name);

            return(present);
        }
Exemple #3
0
 public bool Remove(Present present)
 {
     return(this.presents.Remove(present));
 }