The list of all time zones present on PC (Windows 10 Home). This is what you’ll get with the operation TimeZoneInfo.GetSystemTimeZones() in C#.
Asides
How To: Refresh POCO entity from DbContextHow To: Refresh POCO entity from DbContext
If you notice that the context returns the same entity even if it is already changed one line before, you probably what the following ObjectContext context = ((IObjectContextAdapter)this.Context).ObjectContext; context.Refresh(RefreshMode.StoreWins, entity); You can use it right after obtaining
Visual Studio must-have extensionsVisual Studio must-have extensions
My list of Visual Studio extensions which make developing easier and more comfortable. Tool Description ILSpy Integrates the ILSpy decompiler into Visual Studio. ILSpy is the open-source .NET assembly browser and
Choosing of the unit testing framework (xUnit, NUnit, MSTest)Choosing of the unit testing framework (xUnit, NUnit, MSTest)
Is xUnit is a modern and future proof solution for unit testing? I’m measuring pros and cons of xUnit and NUnit for the big and old legacy application. At the
How To: Integration of WCF with AutofacHow To: Integration of WCF with Autofac
If you’d like to hide WCF implementation class behind an interface to simplify future changes you should deal with some IoC. I use Autofac and have several times struggled upon
Most used Git commandsMost used Git commands
The most used commands in Git console which are used by me in projects. The reference is often overwhelmed with information which hinders me to use it in practice. This text is the place
Passing AntiForgeryToken to every POST requestPassing AntiForgeryToken to every POST request
The best practice is that all POST request has AntiForgeryToken to prevent XSS attack. If you don’t know what it is, please, read materials in the bottom of the article.
Issues with serializing JSON response from RESTIssues with serializing JSON response from REST
You might get the following message when trying to serialize a JSON response from a REST service with DataContractJsonSerializer : End element 'XXX' from namespace 'XXX' is expected. Found element 'XXX'
Add or update URL query parameter in JavaScriptAdd or update URL query parameter in JavaScript
Add or update URL query parameter with respect to number of parameters and its position.
JavaScript string formatJavaScript string format
JavaScript has no built-in function to formatting strings, like C# string.Format(). This function solves the issue adding missing functionality.