Class ValueObjectExample
Namespace: AdCodicem.ValueObjects
Assembly: AdCodicem.ValueObjects.Abstractions.dll
A generic bridge to the example a value object declares through
public static class ValueObjectExample
Inheritance
Inherited Members
object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()
Remarks
A static abstract member is reached through a type parameter, which finds it however the value object implements
it. Named on the type, CountryCode.Example would miss an explicit implementation and fail to compile in a file
the consumer cannot edit.
Methods
Of<TSelf>()
Gets the example a value object declares.
public static TSelf Of<TSelf>() where TSelf : IValueObjectExample<TSelf>
Returns
TSelf
Its example.
Type Parameters
TSelf
The value object.