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