Category Archives: c#

Tuning LINQ performance with Mr. P and Mr. S

I thought I’d take a second look at the Mr. P and Mr. S problem, which I’d posted more than a couple of years ago. The last time I tried it, I wasn’t successful. I had a strategy to solve it, but somehow I just couldn’t translate it into code. I’ve been programming a lot [...]
Also posted in code, programming, tips | Leave a comment

On reflecting extension methods in C#

Extension methods are a great way of adding functionality to existing classes. It almost makes C# similar to ruby/javascript, where none of the classes are “closed” – functionality can be added to them at any point of time. For example, say we want the method ToTitleCase to be available to all String objects, and we [...]
Also posted in extension, methods, programming | Leave a comment
  • Previously …

  • Categories

  • Meta