コード例 #1
0
 public Fish(double price, int count, FishName fishName, DealerCountry dealerCountry)
     : base(price, count)
 {
     Id            = System.Threading.Interlocked.Increment(ref m_Counter);
     Price         = price;
     Count         = count;
     DealerCountry = dealerCountry;
     FishName      = fishName;
 }
コード例 #2
0
 public Vegetables(double price, int count, VegetableType type, DealerCountry country) : base(price, count)
 {
     Id      = System.Threading.Interlocked.Increment(ref m_Counter);
     Country = country;
     Type    = type;
 }
コード例 #3
0
 public Herbaceous(double price, int count, HerbaceousType type, DealerCountry country) : base(price, count)
 {
     Id      = System.Threading.Interlocked.Increment(ref m_Counter);
     Type    = type;
     Country = country;
 }