Category Archives: c#

Do you know you can override the == operator ?

Yes you can! In order to override equality in Value Types we should : implement IEquatable override object.Equals() implement == implement != implement object.GetHashCode() Check Simon Robinson course on Pluralight about C# Equality and Comparisons Advertisements

Posted in c# | Leave a comment

Back to the basics…

While watching this course from K. Scott Allen I’ve re-learned some things about Object Oriented Programming, namely this .. If you have a class… and a derived class… The c# compiler will choose the method to run based on the type … Continue reading

Posted in c#, Object Oriented Programming | Leave a comment