Twitter : @Chris_L_Ayers Mastodon: @Chrisayers@hachyderm.io LinkedIn: chris-l-ayers Blog: https://chris-ayers.com/ GitHub: Codebytes
Interface Segregation Principle (ISP): Scenarios (classes) that depend on configuration settings depend only on the configuration settings that they use.
Separation of Concerns : Settings for different parts of the app aren't dependent or coupled to one another.
public class FileOptions { public string FileExtension { get; set; } =""; public string OutputDir { get; set; } =""; public string TemplateFile { get; set; } =""; }
Twitter: @Chris_L_Ayers Mastodon: @Chrisayers@hachyderm.io LinkedIn: - chris-l-ayers Blog: https://chris-ayers.com/ GitHub: Codebytes