ValueObject Class
Definition
Represents an object whose equality is based on the value rather than identity as specified in Domain Driven Design.
public abstract record ValueObject : IEquatable<ValueObject>
- Inheritance
-
ValueObject
- Implements
- Derived
Constructors
| Name | Description |
|---|---|
| ValueObject() | Initializes a new instance of the ValueObject class. |
Methods
| Name | Description |
|---|---|
| Equals(ValueObject) | Indicates whether the current object is equal to another object of the same type. |
| GetEqualityComponents() | Gets the equality components of this instance. Default is all public properties having a simple signature. |
| GetHashCode() | Returns a hash code for this instance. |
| ToString() | Returns a string that represents this instance. |
See Also
IEquatable<T>