Skip to content

Releases: BMTLab/StateResults

v4.1.0424

24 Apr 15:13
Compare
Choose a tag to compare

What's Changed

  • Added a new Type property for all unions implementing IOneOf, 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 None state 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

28 Mar 15:57
Compare
Choose a tag to compare

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 1

now, 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

02 Mar 12:47
Compare
Choose a tag to compare

What's Changed

  • Fixed some warnings and bugs

Full Changelog: 3.2.0221...v3.3.0302

Release v3.2.0221

21 Feb 16:49
Compare
Choose a tag to compare

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 .csv file with the names of these states.

Full Changelog: 2.3.1027...3.2.0221