示例#1
0
        public override bool Equals(object obj)
        {
            var em = obj as EventMetadata;

            if (em != null)
            {
                var result =
                    Id == em.Id &&
                    Host.EnumerableEquals(em.Host) &&
                    Title == em.Title &&
                    Description == em.Description &&
                    Picture == em.Picture &&
                    Equals(Pictures, em.Pictures) &&
                    StartTime == em.StartTime &&
                    EndTime == em.EndTime &&
                    Latitude == em.Latitude &&
                    Longitude == em.Longitude &&
                    CombineType == em.CombineType &&
                    Shows.EnumerableEquals(em.Shows);
                return(result);
            }

            return(false);
        }