예제 #1
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (ContentLink != null)
     {
         ContentLink.Validate();
     }
 }
예제 #2
0
 /// <summary>
 /// Validate the object.
 /// </summary>
 /// <exception cref="ValidationException">
 /// Thrown if validation fails
 /// </exception>
 public virtual void Validate()
 {
     if (ContentLink == null)
     {
         throw new ValidationException(ValidationRules.CannotBeNull, "ContentLink");
     }
     if (ContentLink != null)
     {
         ContentLink.Validate();
     }
 }