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
ISynchronizationContextthe context in which the inconsistency occured
sourceCollection
ICollection<TValue>the source collection
targetCollection
ICollection<TValue>the target collection
source
TValuethe source
isLeftMissing
booltrue, 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
CanResolveRight
Describes inconsistencies that can occur between the right hand and the left hand of a synchronization
public bool CanResolveRight { get; }
Property Value
Context
Gets the context in which this inconsistency occured
public ISynchronizationContext Context { get; }
Property Value
IsLeftMissing
True, if the element is missing in the left side, otherwise false
public bool IsLeftMissing { get; }
Property Value
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
IInconsistencyAn object to compare with this object.
Returns
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
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
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()