Show / Hide Table of Contents

Class PropertyInequality<TLeft, TRight, TValue>

Denotes an inconsistency that a property had different values

Inheritance
object
PropertyInequality<TLeft, TRight, TValue>
Implements
IInconsistency
IEquatable<IInconsistency>
Inherited Members
object.Equals(object, object)
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: NMF.Synchronizations
Assembly: NMF.Synchronizations.dll
Syntax
public class PropertyInequality<TLeft, TRight, TValue> : IInconsistency, IEquatable<IInconsistency>
Type Parameters
Name Description
TLeft

The LHS context type

TRight

The RHS context type

TValue

The type of the property

Constructors

| Edit this page View Source

PropertyInequality(TLeft, Action<TLeft, TValue>, TValue, TRight, Action<TRight, TValue>, TValue)

Creates a new instance

Declaration
public PropertyInequality(TLeft leftContext, Action<TLeft, TValue> leftSetter, TValue leftValue, TRight rightContext, Action<TRight, TValue> rightSetter, TValue rightValue)
Parameters
Type Name Description
TLeft leftContext

The LHS context element

Action<TLeft, TValue> leftSetter

The LHS setter

TValue leftValue

The left value

TRight rightContext

The RHS context element

Action<TRight, TValue> rightSetter

The RHS setter

TValue rightValue

The right value

Properties

| Edit this page View Source

CanResolveLeft

Gets a value indicating whether the inconsistency can be automatically resolved modifying the left hand model only

Declaration
public bool CanResolveLeft { get; }
Property Value
Type Description
bool
| Edit this page View Source

CanResolveRight

Gets a value indicating whether the inconsistency can be automatically resolved modifying the right hand model only

Declaration
public bool CanResolveRight { get; }
Property Value
Type Description
bool
| Edit this page View Source

LeftContext

Gets the LHS context element

Declaration
public TLeft LeftContext { get; }
Property Value
Type Description
TLeft
| Edit this page View Source

LeftSetter

Gets a function that sets the value at the LHS

Declaration
public Action<TLeft, TValue> LeftSetter { get; }
Property Value
Type Description
Action<TLeft, TValue>
| Edit this page View Source

LeftValue

Gets the LHS property value

Declaration
public TValue LeftValue { get; }
Property Value
Type Description
TValue
| Edit this page View Source

Representation

Gets a human-readable description of this inconsistency

Declaration
public string Representation { get; }
Property Value
Type Description
string
| Edit this page View Source

RightContext

Gets the RHS context element

Declaration
public TRight RightContext { get; }
Property Value
Type Description
TRight
| Edit this page View Source

RightSetter

Gets a function that sets the value at the RHS

Declaration
public Action<TRight, TValue> RightSetter { get; }
Property Value
Type Description
Action<TRight, TValue>
| Edit this page View Source

RightValue

Gets the RHS property value

Declaration
public TValue RightValue { get; }
Property Value
Type Description
TValue

Methods

| Edit this page View Source

Equals(IInconsistency)

Declaration
public bool Equals(IInconsistency other)
Parameters
Type Name Description
IInconsistency other
Returns
Type Description
bool
| Edit this page View Source

Equals(PropertyInequality<TLeft, TRight, TValue>)

Declaration
public bool Equals(PropertyInequality<TLeft, TRight, TValue> other)
Parameters
Type Name Description
PropertyInequality<TLeft, TRight, TValue> other
Returns
Type Description
bool
| Edit this page View Source

Equals(object)

Declaration
public override bool Equals(object obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
| Edit this page View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
| Edit this page View Source

ResolveLeft()

Resolves the inconsistency modifying the left hand side model

Declaration
public void ResolveLeft()
| Edit this page View Source

ResolveRight()

Resolves the inconsistency modifying the right hand side model

Declaration
public void ResolveRight()
| Edit this page View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Implements

IInconsistency
IEquatable<T>
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX