Open sandboxFocus

Property Cases

Cases

Gets the case types that have been added so far, in the order in which they were added.

Declaration
IReadOnlyList<IType> Cases { get; }
Property Value
Type Description
IReadOnlyList<IType>
Remarks

The list holds types and not cases, because a case of a union under construction is fully described by its type. IUnionCase, which the introduced type reports, carries the index and the creation member in addition, and neither exists while the union is being built.

See Also