Beispiel #1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Microsoft.Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (MinGrade != null)
     {
         MinGrade.Validate();
     }
     if (MaxGrade != null)
     {
         MaxGrade.Validate();
     }
     if (SubjectArea != null)
     {
         SubjectArea.Validate();
     }
 }
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="Microsoft.Rest.ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (Grades != null)
     {
         foreach (var element in Grades)
         {
             if (element != null)
             {
                 element.Validate();
             }
         }
     }
     if (MinGrade != null)
     {
         MinGrade.Validate();
     }
     if (MaxGrade != null)
     {
         MaxGrade.Validate();
     }
 }