示例#1
0
        public override int GetHashCode()
        {
            var hash = 19;

            hash = hash * 37 + Name.GetHashCode();
            hash = hash * 37 + TapeLayers.GetHashCode();
            hash = hash * 37 + Thickness.GetHashCode();
            return(hash);
        }
示例#2
0
 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);
 }