Table of Contents

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 ValueObject

Left value.

right ValueObject

Right 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 object

The object to compare with the current object.

Returns

bool

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

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 ValueObject

Left value.

right ValueObject

Right value.

Returns

bool

The result.

Operators

operator ==(ValueObject?, ValueObject?)

== operator overload.

public static bool operator ==(ValueObject? one, ValueObject? two)

Parameters

one ValueObject

Object one.

two ValueObject

Object two.

Returns

bool

Result.

operator !=(ValueObject?, ValueObject?)

!= operator overload.

public static bool operator !=(ValueObject? one, ValueObject? two)

Parameters

one ValueObject

Object one.

two ValueObject

Object two.

Returns

bool

Result.