public void Format(TextWriter writer) { if (writer == null) { throw new ArgumentNullException("writer"); } for (PatternConverter converter = this.m_head; converter != null; converter = converter.Next) { converter.Format(writer, null); } }
/// <summary> /// Produces a formatted string as specified by the conversion pattern. /// </summary> /// <param name="writer">The TextWriter to write the formatted event to</param> /// <remarks> /// <para> /// Format the pattern to the <paramref name="writer"/>. /// </para> /// </remarks> public void Format(TextWriter writer) { if (writer == null) { throw new ArgumentNullException("writer"); } PatternConverter c = m_head; // loop through the chain of pattern converters while (c != null) { c.Format(writer, null); c = c.Next; } }