Loading color scheme

How to start several threads and wait them to finish in C#

If you need some work to be done in parallel, you will need to use threads. Usually, this work includes downloading some data from the server, processing multiple documents at once, launching several instances of the class at the same time, etc. 

But how do you start several threads at once? Here is the code example:

Read more
How to get a list of all timezones and their UTC Offsets in C# (With Sample Code)

If you are writing an international website, it is better to show timestamps to the users in their local timezone. Not everybody can easily translate time from UTC to their local time. Displaying time in a different timezone is confusing to the users and can lead to many misunderstandings. That's why you may want to give the user a choice to select timezone and then make them happy by displaying all timestamps in their local timezones.

But how do you get the timezones list? Here is a little C# code example that shows how to display UTC offset and user-friendly timezone labels:

Read more
Get all interesting articles to your inbox
Please wait