A formatting rule for Expression.

Namespace:  Gallio.Runtime.Formatting
Assembly:  Gallio35 (in Gallio35.dll) Version: 3.3.0.0 (3.3.610.0)

Syntax

C#
public sealed class ExpressionFormattingRule : IFormattingRule
Visual Basic (Declaration)
Public NotInheritable Class ExpressionFormattingRule _
	Implements IFormattingRule

Remarks

Formats expression trees using a more familiar C#-like syntax than the default. Also recognizes captured variables and displays them naturally to conceal the implied field access to an anonymous class.

Made-up syntax for nodes that cannot be directly represented in C#.

  • Power operator: **, as in a ** b
  • Quote expression: `...`, as in `a + b`
  • Constants: formatted recursively using other formatters, which may yield unusual syntax

Inheritance Hierarchy

System..::.Object
  Gallio.Runtime.Formatting..::.ExpressionFormattingRule

See Also