Contents tagged with .NET

  • Drop GDI+ in WinForms and move to WPF

    Tags: .NET, C#, WPF

    Recently a friend of mine came to me asking for some advice on his first C#-project, in which he had to port an existing application to the .NET Framework. He had some minor issues with drawing … more

  • String.Contains(char c)

    Tags: .NET, C#

    This is something I didn't know until I stumbled over it by writing some code in a test project, copying it to my main application and getting build errors.

    Everybody knows that you have a Contains … more

  • Already Open DataReader

    Tags: .NET, SQL

    Today I was getting following error when running one of our applications: ”There is already an open DataReader associated with this Command which must be closed first.”

    This happens when … more

  • C# snippet: override Object.Equals

    Tags: .NET, C#, Snippet

    Lately I’ve been creating quite a few business entities with the ID of the object as the actual key to compare objects, which isn't the default implementation. Because of that I had to override … more

  • Make C# namespace internal

    Tags: .NET

    It’s very common that you want to hide some of your code, so that people who are using your library can’t directly use some of your classes and methods. But one step above, you have your … more