Table of Contents

Class SyncHelper<TLeft, TRight>

Namespace
NMF.Synchronizations
Assembly
NMF.Synchronizations.dll

Denotes a utility class to create synchronization helpers

public class SyncHelper<TLeft, TRight>

Type Parameters

TLeft
TRight
Inheritance
SyncHelper<TLeft, TRight>
Inherited Members

Methods

SynchronizeMany<TValue>(Func<TLeft, ICollectionExpression<TValue>>, Func<TRight, ICollectionExpression<TValue>>)

Create a new synchronizer that synchronizes instances along given predicates

public static ISyncer<TLeft, TRight> SynchronizeMany<TValue>(Func<TLeft, ICollectionExpression<TValue>> leftExpression, Func<TRight, ICollectionExpression<TValue>> rightExpression)

Parameters

leftExpression Func<TLeft, ICollectionExpression<TValue>>

The expression to select values on the left side

rightExpression Func<TRight, ICollectionExpression<TValue>>

The expression to select values on the right side

Returns

ISyncer<TLeft, TRight>

An object that synchronizes the objects

Type Parameters

TValue

The type of the values

Synchronize<TValue>(Expression<Func<TLeft, TValue>>, Expression<Func<TRight, TValue>>)

Create a new synchronizer that synchronizes instances along given predicates

public static ISyncer<TLeft, TRight> Synchronize<TValue>(Expression<Func<TLeft, TValue>> leftExpression, Expression<Func<TRight, TValue>> rightExpression)

Parameters

leftExpression Expression<Func<TLeft, TValue>>

The expression to select values on the left side

rightExpression Expression<Func<TRight, TValue>>

The expression to select values on the right side

Returns

ISyncer<TLeft, TRight>

An object that synchronizes the objects

Type Parameters

TValue

The type of the values