public virtual void Parse(ref IList<RFC822.Field> fields, ref string fieldString) { MatchCollection matches = m_FieldPattern.RegularExpression.Matches(fieldString); foreach (Match m in matches) { RFC822.Field f = new RFC822.Field(); Match tmp = m_HeaderNamePattern.RegularExpression.Match(m.Value); f.Name = tmp.Value; tmp = m_HeaderBodyPattern.RegularExpression.Match(m.Value); f.Body = tmp.Value; fields.Add(f); } }
public virtual void Parse(ref IList <RFC822.Field> fields, ref string fieldString) { MatchCollection matches = m_FieldPattern.RegularExpression.Matches(fieldString); foreach (Match m in matches) { RFC822.Field f = new RFC822.Field(); Match tmp = m_HeaderNamePattern.RegularExpression.Match(m.Value); f.Name = tmp.Value; tmp = m_HeaderBodyPattern.RegularExpression.Match(m.Value); f.Body = tmp.Value; fields.Add(f); } }