Technique Three

Strongly Typing a value from the Config File

Learn more about reading configuration files here.

Use the path method to get a strongly typed value from the app.config.

                    _configuration.GetValue("CustomSettings:Pudding");
                

Pudding : Tapioca