More complete sample of custom units #1189
Replies: 1 comment 2 replies
-
Custom units is the least mature part of the library. It is mostly exploratory to see what we can do with it, in particular for those that want to add units that we don't accept in the main library. I see the wiki doesn't really explain why one would add a custom unit, and to be honest, the benefits are small in its current state. You lose out on what I think is the biggest benefit of the library, such as generating quantity types with factory method Key benefitsAs I recall at least.
There are probably more I'm forgetting. What could be better
I'm adding this to the wiki. Did that answer your question? It would also be helpful to know; |
Beta Was this translation helpful? Give feedback.
-
I'm looking for a more complete sample of a custom units. I've been looking at this, and I have a class that works fine in isolation, but is I don't see how it integrates with the rest of the system, like using
UnitConverter
or abbreviations.Beta Was this translation helpful? Give feedback.
All reactions