Is there are way to force a singleton instance to reset whenever a user update the database?
public class Example{ private Dictionary<int, string> _list; private Example(){ _list = new Dictionary<int, string>(); //Get data from database here and add the data to _list } private class Nested{ static Nested(){} internal static readonly Example Instance = new Example(); } public static Dictionary<int, string> GetExample(){ return Nested.Instance._list } } So, I do I reset _list when database is updated?
Thanks!