Skip to content

Parse quantity and unit from string #30

@angularsen

Description

@angularsen

Add Parse(string) to unit classes. Should handle integers, decimals and different variations of whitespace and multiple case-sensitive abbreviations per unit.

Examples:

  • 1kg, 1 kg => 1 kilogram
  • 1l, 1L, 1 l, 1 L => 1 liter
Volume.Parse("1L") == Volume.FromLiters(1)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions