Exemplo n.º 1
0
 ///<summary>Creates an <see cref="ValidationResult"/> by extracting the invalid member(s) name from the supplied expression(s)</summary>///<summary>Enumerates the lines in a streamreader.</summary>
 public static ValidationResult CreateValidationResult(this IValidatableObject me, string message, params Expression <Func <object> >[] members)
 {
     Contract.Requires(me != null && message != null && members != null);
     return(me.CreateValidationResult(message, (IEnumerable <Expression <Func <object> > >)members));
 }