/// <summary> /// Validate the object. /// </summary> /// <exception cref="ValidationException"> /// Thrown if validation fails /// </exception> public virtual void Validate() { if (Nfs3 != null) { Nfs3.Validate(); } }
/// <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(); } }