public Topic(Person person, int typeTopic, Rubric rubric, DateTime dateAdd, string description, string message, string title) { Person = person; Rubric = rubric; TypeTopic = typeTopic; DateAdd = dateAdd; Description = description; Message = message; Title = title; }
/// <summary> /// Rubric comparison by id and title /// </summary> /// <param name="obj">other rubric</param> /// <returns>true if equals</returns> public override bool Equals(object obj) { Rubric r = obj as Rubric; if (r == null) { return(false); } return(RubricId == r.RubricId && Title == r.Title); }