Releases: BMTLab/StateResults
Releases · BMTLab/StateResults
Release list
v4.1.0424
What's Changed
- Release 4.1 by @BMTLab
- Added a new
Typeproperty for all unions implementingIOneOf, this property returns the static type of the stored value (this will return not the runtime type, but exactly the same type as was specified when declaring the union) - The
Nonestate marker type is now generated by default if the user has not explicitly specified this type in the .csv file - Slightly optimized speed of generation of state marker types
- Small fixes and improvements to code documentation
Full Changelog: v4.1.0424...v4.1.0424
v4.0.0328
What's Changed
Previously, the Index property of Results structures returned 0 if the structure was initialized with a "success" type and 1 if it was initialized with any "error" type
public int Index => _index; // internal _index is 0 or 1now, property returns the sequence number of the type the structure was initialized with, which makes more sense.
and 0 still means "successful" type. And now it looks like an implementation of OneOf.Reduced.
public int Index => _index switch
{
0 when Success is not null => 0,
1 when Error is not null => Error.Index + 1 // retrieve OneOf's Index
};Full Changelog: v3.3.0302...v4.0.0328
Release v3.3.0302
Release v3.2.0221
What's Changed
Added Source Code Generator package - BMTLab.StateResults.Generator
- Now the user can define the own list of structures of simple states (State Markers) by the creation of a
.csvfile with the names of these states.
Full Changelog: 2.3.1027...3.2.0221