Class ValueObject
- Namespace
- GroupeIsa.Neos.Shared.ValueObjects
- Assembly
- GroupeIsa.Neos.Shared.dll
Represents a base class for value objects.
public abstract class ValueObject
- Inheritance
-
ValueObject
- Derived
- Inherited Members
Methods
EqualOperator(ValueObject?, ValueObject?)
Returns true if two value objects are equal, false otherwise.
protected static bool EqualOperator(ValueObject? left, ValueObject? right)
Parameters
left
ValueObjectLeft value.
right
ValueObjectRight value.
Returns
- bool
The result.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
GetEqualityComponents()
Gets equality components.
protected abstract IEnumerable<object?> GetEqualityComponents()
Returns
- IEnumerable<object>
The components.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
NotEqualOperator(ValueObject?, ValueObject?)
Returns true if two value objects are not equal, false otherwise.
protected static bool NotEqualOperator(ValueObject? left, ValueObject? right)
Parameters
left
ValueObjectLeft value.
right
ValueObjectRight value.
Returns
- bool
The result.
Operators
operator ==(ValueObject?, ValueObject?)
== operator overload.
public static bool operator ==(ValueObject? one, ValueObject? two)
Parameters
one
ValueObjectObject one.
two
ValueObjectObject two.
Returns
- bool
Result.
operator !=(ValueObject?, ValueObject?)
!= operator overload.
public static bool operator !=(ValueObject? one, ValueObject? two)
Parameters
one
ValueObjectObject one.
two
ValueObjectObject two.
Returns
- bool
Result.