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?).
Problem
We have so many duplicate code
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?).