Skip to content

MessageFormatter Class ​

Definition ​

Utility methods to format Messages as strings. Formatting optionally includes the original source code.

c#
public static class MessageFormatter

View source

Methods ​

NameDescription
Format<TNode>(Node<TNode>, MessageLevel, MessageFormatterOptions)Lazily enumerates over all Messages of the specified MessageLevel in the specified node.
Format<TNode>(Node<TNode>, MessageFormatterOptions)Lazily enumerates over all Messages in the specified node, grouping by Level in descending order. That is, Error then Warning and then Info.
FormatErrors<TNode>(Node<TNode>, MessageFormatterOptions)Lazily enumerates over all Errors in the specified node.