예제 #1
0
 /// <summary>
 /// Enumerates a list of error messages specifying why the instance is not valid.
 /// </summary>
 /// <returns>A <see cref="T:IEnumerable`1"/> containing the error messages describing why the instance is not valid.</returns>
 /// <remarks>
 /// <para>If no error messages are emitted, the instance is valid, otherwise the instance is invalid.</para>
 /// </remarks>
 public IEnumerable <string> SoftValidate()
 {
     return(ValidateableUtils.CompositionInnerSoftValidate <IZincElement, IZincElement> (this));
 }
예제 #2
0
 /// <summary>
 /// Checks if the given instance is valid.
 /// </summary>
 /// <returns>True if the instance is valid, otherwise false.</returns>
 public virtual bool Validate()
 {
     return(ValidateableUtils.Validate(this));
 }
예제 #3
0
 /// <summary>
 /// Checks if the given instance is valid.
 /// </summary>
 /// <returns>True if the instance is valid, otherwise false.</returns>
 public virtual bool Validate()           //TODO: document
 {
     return(ValidateableUtils.Validate(this));
 }