Exemple #1
0
 ///<summary>
 /// Parses the given string and converts all the messages into ValidationMessage objects.
 ///</summary>
 /// <remarks>
 /// Messages must be separated by <see cref="ValidationMessage.Separator"/> and may be
 /// marked with a severity marker prefix like <see cref="ValidationMessage.ErrorMarker"/>
 /// </remarks>
 public static IEnumerable <ValidationMessage> ParseMultiple(string value)
 {
     return
         (from MessagePart in value.Split(ValidationMessage.Separator[0])
          select ValidationMessage.Parse(MessagePart.Trim()));
 }