Skip to main content
Version: 0.3.x (0.3.0)

Class ValueObjectExample

Namespace: AdCodicem.ValueObjects
Assembly: AdCodicem.ValueObjects.Abstractions.dll

A generic bridge to the example a value object declares through , used by generated code.

public static class ValueObjectExample

Inheritance​

object ← ValueObjectExample

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.