Show / Hide Table of Contents

Class StaticPattern<T>

Denotes a static pattern used as input for a transformation rule

Inheritance
object
StaticPattern<T>
Implements
ITransformationRulePattern<T>
ITransformationRulePattern
ITransformationPattern
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: NMF.Transformations.Linq
Assembly: NMF.Transformations.dll
Syntax
public class StaticPattern<T> : ITransformationRulePattern<T>, ITransformationRulePattern, ITransformationPattern
Type Parameters
Name Description
T

Constructors

| Edit this page View Source

StaticPattern(Func<ITransformationContext, IEnumerable<T>>)

Creates a new static pattern to fire transformation rule executions

Declaration
public StaticPattern(Func<ITransformationContext, IEnumerable<T>> selector)
Parameters
Type Name Description
Func<ITransformationContext, IEnumerable<T>> selector

A function that selects the inputs for the transformation rule

Properties

| Edit this page View Source

Selector

Gets the function to select inputs for the target rule

Declaration
public Func<ITransformationContext, IEnumerable<T>> Selector { get; set; }
Property Value
Type Description
Func<ITransformationContext, IEnumerable<T>>
| Edit this page View Source

TargetRule

Gets or sets the transformation rule that is the target for the current transformation rule pattern

Declaration
public GeneralTransformationRule<T> TargetRule { get; set; }
Property Value
Type Description
GeneralTransformationRule<T>

Methods

| Edit this page View Source

CreatePattern(ITransformationContext)

Applies the current pattern to the given transformation context

Declaration
public ITransformationPatternContext CreatePattern(ITransformationContext context)
Parameters
Type Name Description
ITransformationContext context

The transformation context in which the pattern should be applied

Returns
Type Description
ITransformationPatternContext

A transformation pattern context object that represents the pattern within the given transformation context

Implements

ITransformationRulePattern<TIn>
ITransformationRulePattern
ITransformationPattern
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX