コード例 #1
0
 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;
 }
コード例 #2
0
ファイル: Rubric.cs プロジェクト: MaxenceDufour/ForDev
        /// <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);
        }