public override Boolean Equals(Object other)
        {
            if (other == null || !(other is KnowledgeItem))
            {
                throw new InvalidOperationException("Invalid parameter: Other");
            }

            KnowledgeItem ei2 = other as KnowledgeItem;

            if (this.ID != ei2.ID)
            {
                return(false);
            }
            if (this.Category != ei2.Category)
            {
                return(false);
            }
            if (String.CompareOrdinal(this.Title, ei2.Title) != 0)
            {
                return(false);
            }
            if (String.CompareOrdinal(this.Content, ei2.Content) != 0)
            {
                return(false);
            }

            return(true);
        }
 public KnowledgeItem(KnowledgeItem other)
 {
     this.ID       = other.ID;
     this.Category = other.Category;
     this.Title    = other.Title;
     this.Content  = other.Content;
 }
        public void UpdateData(KnowledgeItem other)
        {
            if (other == null)
            {
                throw new InvalidOperationException("Invalid parameter: Other");
            }

            if (Category != other.Category)
            {
                Category = other.Category;
            }
            if (String.CompareOrdinal(Title, other.Title) != 0)
            {
                Title = other.Title;
            }
            if (String.CompareOrdinal(Content, other.Content) != 0)
            {
                Content = other.Content;
            }
        }