Skip to content

Improve the config parse layer #5237

Description

@Mrpaoo

Problem

We have so many duplicate code

if(config.contain(key) && config.istypexxx(key))

in every constructor, which is hard to read and maintain.

Expect

Maybe design a get<T>(string key, T default ) or sth and cut that off, or further, develop a Schema-based Configuration(overkill?).

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