Example #1
0
 /// <summary>
 /// Returns an enumerator that iterates through the collection.
 /// </summary>
 /// <returns>An enumerator that can be used to iterate through the collection.</returns>
 public IEnumerator <IText> GetEnumerator()
 {
     return
         (new TextCollection(
              new Mapped <Exception, string>(
                  _source.Errors(),
                  err => err.ToString()
                  )
              ).GetEnumerator());
 }
Example #2
0
 public BadCredentialViewModel(IAttempt attempt) : this(attempt.Errors())
 {
 }