コード例 #1
0
 public bool Equals(StockGroup other)
 {
     if (other == null)
     {
         return(false);
     }
     return(this.Id == other.Id);
 }
コード例 #2
0
 public StockGroup CreateOrGet(StockGroup stockGroup)
 {
     if (stockGroup == null)
     {
         throw new ArgumentNullException();
     }
     if (!_stockGroups.Contains(stockGroup))
     {
         _stockGroups.Add(stockGroup);
     }
     return(stockGroup);
 }