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