Good Coding Practices Nick 5 example - herougo/SoftwareEngineerKnowledgeRepository GitHub Wiki
Original
var regionName = configuration.GetSection("DynamoDB").GetSection("RegionDetails")["RegionName"];
Improved
var dynamoDdSection = configuration.GetSection("DynamoDB");
var regionSection = dynamoDdSection.GetSection("RegionDetails");
var regionName = regionSection["RegionName"];