Hierarchies are quite difficult to represent correctly in a flat structure such as that of a SQL Table. Recently, I had to work on finding possible looks in a db hierarchy. In this post I will share with you the tips I gathered all around the internet to solve this problem efficiently.
The following post will explain to you how to serialize an object into XML including a CDATA Xml field.
The var keyword might appear a little bit deceiving sometimes, specially when involving Linq in the equation. Some developers (particularly novice ones) can’t seem to draw the line between two things that are separate concepts. So, what is the best practice when using var in C#?
Debugging lambdas in Visual Studio is simple (but tricky).
What is the purpose of having two actions in c# that seem to do the same? On one side we have the typeof() keyword and on the other side the GetType() method. Continue Reading
Both keywords allow the caller of a method to send a reference of a variable, however both have subtle differences that you better take in consideration. These differences have both technical and funcional meaning. Continue Reading
The other day while working in some legacy code I discovered that it is possible for two enum values to be the same.
In order to control the flow of your program, C# offers a set of several operators in order to test conditions. Continue Reading
Hello, today I will do a quick post on Simple and Complex C# statements. This is VERY BASIC stuff. Continue Reading
Ah! and yet again we find ourselves in the deep rabbit hole of Object Oriented Programming. In this particular instance I will discuss a bit on the mysteries of polymorphism and in particular virtual method. Continue Reading