public bool Equals(CondimentsChoices other) { if (other == null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Condiments.Equals(other.Condiments) && Amount == other.Amount); }
public CondimentsChoices(Condiments condiments, CondimentAmount amount) { Condiments = condiments; Amount = amount; }
public override int GetHashCode() { return(Condiments.GetHashCode()); }