Show / Hide Table of Contents

Class StaticPattern<T1, T2>

Denotes a static pattern used to generate inputs for transformation rules

Inheritance
object
StaticPattern<T1, T2>
Implements
ITransformationRulePattern<T1, T2>
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<T1, T2> : ITransformationRulePattern<T1, T2>, ITransformationRulePattern, ITransformationPattern
Type Parameters
Name Description
T1

The first argument type of the transformation rule

T2

The second argument tyoe of the transformation rule

Constructors

| Edit this page View Source

StaticPattern(Func<ITransformationContext, IEnumerable<Tuple<T1, T2>>>)

Creates a new instance

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

The function to select the input elements of the target transformation rule

Properties

| Edit this page View Source

Selector

The function to select the input elements of the target transformation rule

Declaration
public Func<ITransformationContext, IEnumerable<Tuple<T1, T2>>> Selector { get; set; }
Property Value
Type Description
Func<ITransformationContext, IEnumerable<Tuple<T1, T2>>>
| 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<T1, T2> TargetRule { get; set; }
Property Value
Type Description
GeneralTransformationRule<T1, T2>

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<TIn1, TIn2>
ITransformationRulePattern
ITransformationPattern
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX