예제 #1
0
 internal OrderItem(ArticleNumber articleNumber, int count)
 {
     ArticleNumber = articleNumber;
     if (count <= 0)
     {
         throw new ArgumentOutOfRangeException();
     }
     Count = count;
 }
예제 #2
0
 protected bool Equals(ArticleNumber other)
 {
     return(string.Equals(ArticlePrefix, other.ArticlePrefix) && string.Equals(FourDigitCode, other.FourDigitCode));
 }
예제 #3
0
 public override int GetHashCode()
 {
     return(ArticleNumber != null ? ArticleNumber.GetHashCode() : 0);
 }