Tag Archives: c#

Consuming json API in C# application

In next posts we will create little app what will use public web api data and show it on screen.  First task is to create classes what correspond to json data web api is returning. There are several ways to create C# classes from JSON API response in Visual Studio. One of them is to… Read More »

5 cents hint – c# looping between date range

If you need looping between date range then there are many ways to solve this task. Here is one simple code snippet DateTime startDate = new DateTime(2017, 1, 1); DateTime endDate = DateTime.Today; // looping between date range while (startDate < endDate) { // … to the “thing” startDate = startDate.AddDays(1); } Mission completed.