I need to store both common parameters and user parameters in one list. For this, I use nested classes. Here for example
class Parameters { public class UserParameters { string testUserParameters; } public class AllPrameters { string testAllParameters; } } But when I create an object of class Parameters. I can not assign him the parameters of nested classes. For example, testUserParameters
class Test { static void x() { Parameters g = new Parameters(); } } What to do? If it is not clear why I am doing this, I explain. I need to store the program parameters in a single configuration file.
Example: let's say I need to keep company employees. I keep general data in one configuration file: number of employees, number of departments, name of all departments ...
And also store data about each person. Name, department, age ... And here I create an object when I need general data. I fill in the object with only general data, and when I fill in the data for an employee, I fill in the object with only data for an employee and store it in the general list.