title: Print results remaining in the ValidationResult error list .NET
body: <p>My code is the following one:</p>
  
  <pre><code>//Validate that all the attributes are well setted
  
  ValidationContext vc = new ValidationContext(callDAO, null, null);
  var resultsValidation = new List&lt;ValidationResult&gt;();
  bool validated = Validator.TryValidateObject(callDAO, vc, resultsValidation, true);
  
  if(validated)
  {
     //Execute some code
  }
  else{
       notValidated++;
       var errorValidations = resultsValidation.Select(v =&gt; v.ErrorMessage);
       log.Error(string.Format("The attribute VALIDATION FAILED due to: " + errorValidations));
  }
  </code></pre>
  
  <p>What I want to do is print the errors contained in "errorValidations" in my log file correctly. But when writting in the log, the following is written:</p>
  
  <pre><code>System.Linq.Enumerable+WhereSelectListIterator`2[System.ComponentModel.DataAnnotations.ValidationResult,System.String]
  </code></pre>
  
  <p><strong>Question:</strong> How can I display correctly the information contained in the "resultsValidation"?</p>
  
  <p><strong>Note:</strong> Example of the content in the "resultsValidation" when an attribut lenght that was introduced was bigger than the defined:</p>
  
  <pre><code>[0] {The field Id must be a string with a maximum lenght of 15.}
  </code></pre>
  
  <p>Thank you all for your answers.</p>