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

            ExerciseItem ei2 = other as ExerciseItem;

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

            return(true);
        }
        public void UpdateData(ExerciseItem other)
        {
            if (other == null)
            {
                throw new InvalidOperationException("Invalid parameter: Other");
            }

            if (KnowledgeItemID != other.KnowledgeItemID)
            {
                KnowledgeItemID = other.KnowledgeItemID;
            }
            if (ExerciseType != other.ExerciseType)
            {
                ExerciseType = other.ExerciseType;
            }
            if (String.CompareOrdinal(Content, other.Content) != 0)
            {
                Content = other.Content;
            }
        }