Blog Archives

Generic Method – How to specify type constraint on T for enum type

In my current application I really need to write a generic method that accept any enum type as a parameter. Let me first explain my situation why I need generic method.  Here is the method that I need to convert into generic

Posted in Microsoft Technology Tagged with:

Case Insensitive String Replace

When we do string comparison or string replacement, it’s good practice to compare/replace string ignoring the case of string unless there is a need of it. It’s very simple when you want to compare two string ignoring the case of

Posted in Microsoft Technology Tagged with: ,

Ads