/// <summary> /// Checks whether this <see cref="HueCollection"/> contains the same /// hues and the same order as <paramref name="other"/>. /// </summary> /// <param name="other">Collection to compare with.</param> public bool Equals(HueCollection other) { if (other == null || other.hues.Count != hues.Count) { return(false); } for (var i = 0; i < hues.Count; i++) { if (hues[i] != other.hues[i]) { return(false); } } return(true); }
public HueString(HueCollection collection) { hues = new List <HueValue>(collection.Values ?? throw new ArgumentNullException(nameof(collection))); }