Show / Hide Table of Contents

Class Rule<TSource, TTarget>

Represents a rewrite rule.

Inheritance
System.Object
RuleBase<TSource, TTarget>
Rule<TSource, TTarget>
Inherited Members
RuleBase<TSource, TTarget>.Cost
Namespace: System.Linq.CompilerServices
Assembly: Nuqleon.Linq.CompilerServices.dll
Syntax
public sealed class Rule<TSource, TTarget> : RuleBase<TSource, TTarget>
Type Parameters
Name Description
TSource

Type of the source tree nodes.

TTarget

Type of the target tree nodes.

Properties

Goal

Gets the lambda expression representing the rewrite goal applied by the rule.

Declaration
public LambdaExpression Goal { get; }
Property Value
Type Description
System.Linq.Expressions.LambdaExpression

Pattern

Gets the lambda expression representing the pattern matched by the rule.

Declaration
public LambdaExpression Pattern { get; }
Property Value
Type Description
System.Linq.Expressions.LambdaExpression

Methods

ToString()

Gets a diagnostic string representation of the rewrite rule.

Declaration
public override string ToString()
Returns
Type Description
System.String

String representation of the rewrite rule, used for diagnostic purposes.

In This Article
Back to top Generated by DocFX