MessageFormatter.Format Method
Overloads
Format<TNode>(Node<TNode>, MessageLevel, Boolean)
Lazily enumerates over all Messages of the specified MessageLevel in the specified node.
public static IEnumerable<string> Format<TNode>(Node<TNode> node, MessageLevel level, bool includeSource = true)
where TNode : Node<TNode>;
Type Parameters
Name | Description |
---|---|
TNode | The type of the node. |
Parameters
Name | Type | Description |
---|---|---|
node | The node. | |
level | The MessageLevel. | |
includeSource | Whether to include the source code in the output or not. Defaults to |
Returns
A lazy enumeration of formatted Messages.
Format<TNode>(Node<TNode>, Boolean)
Lazily enumerates over all Messages in the specified node, grouping by Level in descending order. I.e. Error then Warning and then Info.
public static IEnumerable<IGrouping<MessageLevel, string>> Format<TNode>(Node<TNode> node, bool includeSource = true)
where TNode : Node<TNode>;
Type Parameters
Name | Description |
---|---|
TNode | The type of the node. |
Parameters
Name | Type | Description |
---|---|---|
node | The node. | |
includeSource | Whether to include the source code in the output or not. Defaults to |
Returns
Last modified: 22 November 2024