Пример #1
0
        static async Task Main(string[] args)
        {
            // 909 stores
            Systembolaget[] all = await SystembolagetFile.ReadAll();

            Demo(all);
        }
Пример #2
0
        public static async Task <Systembolaget[]> ReadAll()
        {
            using FileStream stream = File.OpenRead(GetPath());
            SystembolagetFile fileContent = await JsonSerializer.DeserializeAsync <SystembolagetFile>(stream);

            return(fileContent.ButikOmbud);