Ejemplo n.º 1
0
        public Present GetPresentWithLeastMagic()
        {
            Present present = this.presents.OrderBy(p => p.Magic).First();

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

            return(present);
        }
Ejemplo n.º 3
0
 public bool Remove(Present present)
 {
     return(this.presents.Remove(present));
 }