Table of Contents

SingleValueObject<T> Class

Definition

Namespace
Savvyio.Domain
Assemblies
Savvyio.Domain.dll
Source
src/Savvyio.Domain/SingleValueObject.cs

Provides an implementation of ValueObject tailored for handling a single value.

public abstract record SingleValueObject<T> : ValueObject, IEquatable<ValueObject>, IEquatable<SingleValueObject<T>>

Type Parameters

T

The type of the object.

Inheritance
SingleValueObject<T>
Implements
Inherited Members

Constructors

Name Description
SingleValueObject(T)

Initializes a new instance of the SingleValueObject<T> class.

Properties

Name Description
Value

Gets the value of this instance.

Methods

Name Description
GetEqualityComponents()

Gets the equality components of this instance.

Operators

Name Description
implicit operator T(SingleValueObject<T>)

Performs an implicit conversion from SingleValueObject<T> to T.

See Also