Skip to content

Was IQuantity.Value's return type intended to change to QuantityValue at v5? #1205

Closed
@tmilnthorp

Description

@tmilnthorp

At v5 IQuantity.Value now returns a QuantityValue type rather than double. Was this intended? It's a bit of an obscure change since IQuantity.Value is implemented explicitly, so only seen when you have a left-hand side type of IQuantity.

We have hundreds of places where we pass IQuantity.Value to an internal double method, and upgrading to v5 would require a cast to double on each one.

Changing it back to double does not break any tests FWIW.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions