Category Archives: C# Coding Techniques

TypeScript is actually JavaScript and one still has to be careful

TypeScript, although very promising language, does not solve fundamental JavaScript’s issue (feature?) with “this” property binding. TypeScript can lead to unfortunate errors since it is heavily used by people coming from C#/Java communities, who bring coding patterns with them. Let’s have a look at code example from TypeScript playground:

Now, lets make slight change… Read More »

Refactoring old C#5 code to C#6 code

This post is not the usual one. I wanted to show you how it looks and feels refactoring and improving old C# 5 code using features of C# 6. Doing it in the traditional way by simply writing and giving code snippets is not very productive and I have decided to try out other media… Read More »

C# implicit user-defined type conversion

C# has a very nice little feature named implicit user-defined type conversion. By far not every developer knows about its existence because its application is very limited. However, sometimes it can be very handy to help you increasing the readability of the code by removing unnecessary clutter. For example, you have to write many functions,… Read More »