Category Archives: C#

String.GetHashCode() Internals

While I was eating dinner, I had this somehow suprising question in my mind: How is String.GetHashCode() implemented? Is it fast? It needs a linear time based on the length of the string. This is understandable if you think about … Continue reading

Posted in .net, C#, coding | Leave a comment

Dependency injection & their Pitfalls*

After I had my dependency injection set up and running, I noticed a shift in my way of developing. I started to be more focused on only one class and their implementation at a time. If I felt the need … Continue reading

Posted in C#, coding, dependency injection, Prism | Leave a comment

String.Split() Kwik-e

While I was cleaning up some legacy code I found an overly complex usage of String.Split() in several places: var sentence = "Hello World!"; var words = sentence.Split(new char[] { ‘ ‘ }); If you take a look at the … Continue reading

Posted in C#, coding, Kwik-e | 1 Comment