Skip to content

Metric and binary prefix for units of measurement #2

Description

@ExM

Metric and binary prefix for units of measurement
https://en.wikipedia.org/wiki/Metric_prefix
https://en.wikipedia.org/wiki/Binary_prefix

For example:
With configuration class:

classConf{publiclongMaxSize;}

Section

<ConfMaxSize='1Ki' />

Parsed to

settings.Get<Conf>("Conf").MaxSize==1024

Section

<ConfMaxSize='0.5Ki' />

Parsed to

settings.Get<Conf>("Conf").MaxSize==512

Section

<ConfMaxSize='1K' />

Parsed to

settings.Get<Conf>("Conf").MaxSize==1000

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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