Skip to content

Create a quantity from composed quantities #937

Answered by angularsen
lenyturmel asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, there is no direct support for this in the library today.
The best you can accomplish today, is something like Volume.Parse("2 l") + Volume.Parse("9 dl") + Volume.Parse("3 ml").
Or similar with Volume.FromLiters(2) + .....

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lenyturmel
Comment options

@MuiBienCarlota
Comment options

@angularsen
Comment options

Answer selected by lenyturmel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants