Class GeneratedValues

Namespace
Cratis.Arc.Commands
Assembly
Cratis.Arc.Core.dll

Provides read-only access to the generated values captured by a command in resolution order.

public sealed class GeneratedValues : IReadOnlyList<GeneratedValue>, IReadOnlyCollection<GeneratedValue>, IEnumerable<GeneratedValue>, IEnumerable
Inheritance
GeneratedValues
Implements
Inherited Members
Extension Methods

Constructors

GeneratedValues()

public GeneratedValues()

Properties

Count

public int Count { get; }

Property Value

int

this[int]

public GeneratedValue this[int index] { get; }

Parameters

index int

Property Value

GeneratedValue

Methods

GetEnumerator()

public IEnumerator<GeneratedValue> GetEnumerator()

Returns

IEnumerator<GeneratedValue>

Get<T>(string)

Gets the most recently captured value with the given name and declared type.

public T Get<T>(string name)

Parameters

name string

The generated value name.

Returns

T

The captured value.

Type Parameters

T

The declared generated value type.