Пример #1
0
        public void UpdateData(ExerciseItemAnswer other)
        {
            if (other == null)
            {
                throw new InvalidOperationException("Invalid parameter: Other");
            }

            if (String.CompareOrdinal(Content, other.Content) != 0)
            {
                Content = other.Content;
            }
        }
Пример #2
0
        public override Boolean Equals(Object other)
        {
            if (other == null || !(other is ExerciseItemAnswer))
            {
                throw new InvalidOperationException("Invalid parameter: Other");
            }

            ExerciseItemAnswer ei2 = other as ExerciseItemAnswer;

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

            return(true);
        }
Пример #3
0
 public ExerciseItemAnswer(ExerciseItemAnswer other) : this()
 {
     this.ID      = other.ID;
     this.Content = other.Content;
 }