public override int GetHashCode() { var hash = 19; hash = hash * 37 + Name.GetHashCode(); hash = hash * 37 + TapeLayers.GetHashCode(); hash = hash * 37 + Thickness.GetHashCode(); return(hash); }
public override bool Equals(object obj) { if (obj == null) { return(false); } if (obj is Tape tape) { return(Name == tape.Name && TapeLayers.SequenceEqual(tape.TapeLayers)); } return(false); }