public override bool Equals(object obj) { VideoLabel video = (VideoLabel)obj; if (this.Id != video.Id || Name != video.Name) { return(false); } return(true); }
public override bool Equals(object obj) { TypeLabel label = (TypeLabel)obj; if (Id != label.Id || Name != label.Name || Type != label.Type || Ref != label.Ref) { return(false); } foreach (var item in label.Labels) { VideoLabel video = this.Labels.FirstOrDefault(t => t.Id == item.Id); if (video == null || !video.Equals(item)) { return(false); } } return(true); }
public object Clone() { VideoLabel label = (VideoLabel)this.MemberwiseClone(); return(label); }