Skip to content

Document parsing in the readme files #109

@atmoos

Description

@atmoos

Parsing functions a bit differently to conventional types

Possibly expected

Length twoMetres = Length.Parse("2 m"); // this doesn't exist!

This library

var unitRepository = UnitRepository.Create(); // can load other assemblies containing custom units
IParser<Length> parser = Parser.Create<Length>(unitRepository); // use that to create a parser

Length twoMetres = parser.Parse("2 m");

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions