Пример #1
0
 public VideoTitle(VideoTitle title, int id)
 {
     Name = title.Name;
     Year = title.Year;
     Type = title.Type;
     Id   = id;
 }
Пример #2
0
        public bool Equals(VideoTitle title)
        {
            if (ReferenceEquals(null, title))
            {
                return(false);
            }
            if (ReferenceEquals(this, title))
            {
                return(true);
            }

            return(IsEqual(title));
        }
Пример #3
0
 private bool IsEqual(VideoTitle title)
 {
     return(String.Equals(title.Name, Name) &&
            title.Year == Year);
 }