public System.Collections.Generic.IEnumerableValidate(ValidationContext validationContext) { if(true) { yield return new ValidationResult("error message", new string[] { "Validated Object Name" }); } }
http://msdn.microsoft.com/en-us/library/system.componentmodel.dataannotations.ivalidatableobject.validate.aspx