petyka
❔ Issue with IOptions when using private getter
no it looks like this:
private string Config1 { get; set; }
private IEnumerable<string> _realConfig1;
public IEnumerable<string> RealConfig1
{
get
{
if (_realConfig1 is null)
{
_realConfig1 = ... do the transformation ...
}
return _realConfig1;
}
}
13 replies