using EkzamenListImplement; namespace ConfectioneryListImplement { public class DataListSingleton { private static DataListSingleton? _instance; public List Students { get; set; } public List Groups { get; set; } private DataListSingleton() { Students = new List(); Groups = new (); } public static DataListSingleton GetInstance() { if (_instance == null) { _instance = new DataListSingleton(); } return _instance; } } }