Everytime the program loads, I need a dictionary to have about 15 values. Right now I’m using a function called “Load_Dictionary” that just adds each value. How do you suggest going about loading a dictionary like this? Through a function? Using an XML file?
Share
Make a static readonly property/field and set it in the static constructor of the class.
Or make an assignment right in the declaration: