示例#1
0
        public override bool Equals(object obj)
        {
            VideoLabel video = (VideoLabel)obj;

            if (this.Id != video.Id || Name != video.Name)
            {
                return(false);
            }
            return(true);
        }
示例#2
0
        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);
        }
示例#3
0
        public object Clone()
        {
            VideoLabel label = (VideoLabel)this.MemberwiseClone();

            return(label);
        }