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
TValueThe type of the item
- Inheritance
-
MissingItemInconsistency<TValue>
- Implements
- Inherited Members
Constructors
MissingItemInconsistency(object, object, IInconsistencyDescriptor<object, object, TValue, TValue>, ISynchronizationContext, ICollection<TValue>, ICollection<TValue>, TValue, bool)
Creates a new instance
public MissingItemInconsistency(object sourceElement, object targetElement, IInconsistencyDescriptor<object, object, TValue, TValue> descriptor, ISynchronizationContext context, ICollection<TValue> sourceCollection, ICollection<TValue> targetCollection, TValue source, bool isLeftMissing)
Parameters
sourceElementobjectthe source element
targetElementobjectthe target element
descriptorIInconsistencyDescriptor<object, object, TValue, TValue>A descriptor used to give human-readable descriptions of the inconsistency
contextISynchronizationContextthe context in which the inconsistency occured
sourceCollectionICollection<TValue>the source collection
targetCollectionICollection<TValue>the target collection
sourceTValuethe source
isLeftMissingbooltrue, 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
LeftElement
Describes inconsistencies that can occur between the right hand and the left hand of a synchronization
public object LeftElement { get; }
Property Value
RightElement
Describes inconsistencies that can occur between the right hand and the left hand of a synchronization
public object RightElement { 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
DescribeLeft()
Describes inconsistencies that can occur between the right hand and the left hand of a synchronization
public string DescribeLeft()
Returns
DescribeRight()
Describes inconsistencies that can occur between the right hand and the left hand of a synchronization
public string DescribeRight()
Returns
Equals(IInconsistency)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(IInconsistency other)
Parameters
otherIInconsistencyAn 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
objobject
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()