コード例 #1
0
ファイル: Inventory.cs プロジェクト: Oleg979/CSharp-lessons
 public Inventory Remove(Potion w)
 {
     if (Potions.Contains(w))
     {
         Potions.Remove(w);
     }
     return(this);
 }
コード例 #2
0
 public bool Contains(Potion potion) => Potions.Contains(potion);