Table of Contents

Class MissingItemInconsistency<TValue>

Namespace
NMF.Synchronizations.Inconsistencies
Assembly
NMF.Synchronizations.dll

Denotes the inconsistency that an item is missing in a synchronized collection

public class MissingItemInconsistency<TValue> : IInconsistency, IEquatable<IInconsistency>

Type Parameters

TValue

The type of the item

Inheritance
MissingItemInconsistency<TValue>
Implements
Inherited Members

Constructors

MissingItemInconsistency(ISynchronizationContext, ICollection<TValue>, ICollection<TValue>, TValue, bool)

Creates a new instance

public MissingItemInconsistency(ISynchronizationContext context, ICollection<TValue> sourceCollection, ICollection<TValue> targetCollection, TValue source, bool isLeftMissing)

Parameters

context ISynchronizationContext

the context in which the inconsistency occured

sourceCollection ICollection<TValue>

the source collection

targetCollection ICollection<TValue>

the target collection

source TValue

the source

isLeftMissing bool

true, if the item is missing left, otherwise false

Properties

CanResolveLeft

Describes inconsistencies that can occur between the right hand and the left hand of a synchronization

public bool CanResolveLeft { get; }

Property Value

bool

CanResolveRight

Describes inconsistencies that can occur between the right hand and the left hand of a synchronization

public bool CanResolveRight { get; }

Property Value

bool

Context

Gets the context in which this inconsistency occured

public ISynchronizationContext Context { get; }

Property Value

ISynchronizationContext

IsLeftMissing

True, if the element is missing in the left side, otherwise false

public bool IsLeftMissing { get; }

Property Value

bool

Source

Gets the source element that is missing

public TValue Source { get; }

Property Value

TValue

SourceCollection

Gets the source collection where the element is contained

public ICollection<TValue> SourceCollection { get; }

Property Value

ICollection<TValue>

TargetCollection

Gets the target collection where the element is missing

public ICollection<TValue> TargetCollection { get; }

Property Value

ICollection<TValue>

Methods

Equals(IInconsistency)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(IInconsistency other)

Parameters

other IInconsistency

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

public override int GetHashCode()

Returns

int

ResolveLeft()

Describes inconsistencies that can occur between the right hand and the left hand of a synchronization

public void ResolveLeft()

ResolveRight()

Describes inconsistencies that can occur between the right hand and the left hand of a synchronization

public void ResolveRight()