コード例 #1
0
 public override bool Equals(object obj)
 {
     return(obj is Article other &&
            Name == other.Name &&
            SubArticles.SequenceEqual(other.SubArticles) &&
            Translations.SequenceEqual(other.Translations));
 }
コード例 #2
0
 internal void AddSubArticle(Article subArticle)
 {
     subArticle.ParentArticle = this;
     SubArticles.Add(subArticle);
 }