DEV Community


Posted on

Answer: Custom Type In Application Settings

Here is a more common solution, which can be used for collections as well press View code in Settings to open Settings.cs

Add your property this way:

    public YourType PropertyName
        get => (YourType)this["PropertyName"];
        set => this["PropertyName"] = value;

YourType here can be collection like List<object>

Top comments (0)