I am using the Settings class in my .NET project. I notice in the editor that only certain types are available to be used as types for the individual properties in the Settings class. What if I wanted to have a property that was an enumeration from my code or a generic collection for instance? How would I implement that?
I'm guessing that I can do it in a separate file using the partial class mechanism (since Settings is already defined as a partial class) but I want to see if anyone agrees with that and if there may be a way to do it within the editor.
Create a new "Settings" file to add a complex/user-defined type of choice. Here is a how-to for a Enum.
Step 1. Create a Settings file
Step 2. Browse for type
Step 3. Select type (Namespace.TypeName)
Step 4. Ta da - Done
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With