Meassure System

No more errors from using raw numbers dealing with time, pixels, length or weight values
Nuget | Github

Suggest possible conversions from a meassure unit:

private IEnumerable<Weight> SuggestConvertions (Weight weight)
    => new List<Weight>
       {
           weight.kg(),
           weight.hg(),
           weight.dag(),
           weight.g(),
           weight.dg(),
           weight.cg(),
           weight.mg(),
           weight.lb(),
           weight.oz(),
       }.Where(w => w.OriginalUnit != weight.OriginalUnit);
                                    

Arithmetic operations are available too:

Weight w = 4.dg() + 10.g() + 2.5.oz();
An error has occurred. This application may no longer respond until reloaded. Reload 🗙