Skip to content

MessageFormatter.FormatErrors Method ​

Definition ​

Lazily enumerates over all Errors in the specified node.

c#
public static IEnumerable<string> FormatErrors<TNode>(Node<TNode> node, MessageFormatterOptions? options = null)
   where TNode : Node<TNode>;

View source

Type Parameters ​

NameDescription
TNodeThe type of the node.

Parameters ​

NameTypeDescription
nodeNode<TNode>The node.
optionsMessageFormatterOptionsThe MessageFormatterOptions to use. If not specified then Default is used.

Returns ​

IEnumerable<String>

A lazy enumeration of formatted errors.