Пример #1
0
 public bool Equals(CondimentsChoices other)
 {
     if (other == null)
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(Condiments.Equals(other.Condiments) && Amount == other.Amount);
 }
Пример #2
0
 public CondimentsChoices(Condiments condiments, CondimentAmount amount)
 {
     Condiments = condiments;
     Amount     = amount;
 }
Пример #3
0
 public override int GetHashCode()
 {
     return(Condiments.GetHashCode());
 }