.Net & C#

Save List<T> to XML file

So we need to save our List<T> to XML file for something. For example, for work with it in Access. C# is great for this with using System.Xml.Serialization. There are only 4 strings of code to save an XML-file. Read more»

.Net & C#

First and last day in month

While coding a solution in .Net to parse billings I needed to find first and last days in month. The first day is easy – just set “01” for day. But for last day there is nice solution, hope it’ll help you DateTime today = DateTime.Today; DateTime endOfMonth = new DateTime(today.Year, today.Month, 1).AddMonths(1).AddDays(-1); Read more»

.Net & C#

Popular Posts