Class StaticPattern<T1, T2>
Denotes a static pattern used to generate inputs for transformation rules
Inherited Members
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 SourceStaticPattern(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 SourceSelector
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>>> |
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 SourceCreatePattern(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 |