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
this[int]
public GeneratedValue this[int index] { get; }
Parameters
indexint
Property Value
Methods
GetEnumerator()
public IEnumerator<GeneratedValue> GetEnumerator()
Returns
Get<T>(string)
Gets the most recently captured value with the given name and declared type.
public T Get<T>(string name)
Parameters
namestringThe generated value name.
Returns
- T
The captured value.
Type Parameters
TThe declared generated value type.