I have:
IConfiguration cfg;
string key;
I must detect if the key
exists inside cfg
when the key has a 'null' value.
I know the key is inside, I see it with the debugger, but I need a method to detect that.
I thought that cfg.GetSection(key).Exists()
would return True.
But it always returns False.
According to documentation, cfg.GetSection(key)
never returns null, even if key doesn't exist, so it is of no help.