Removing if… elseif…elseif…

if(s == "foo") Continue reading 

Add parameter comments for a method in c#

The “feature” is called XML comments. Just type /// right before your methods and VS will generate some xml tags. These will be used to show the tooltip as well as parameter info also. Continue reading

String Extensions – C#

Using built-in string methods can help us get the desired result but you repeat the code everywhere in need and I felt isolating the logic to one place will help the logic maintainable and testable. We can have all the below methods in a class file. (StringExtensions ) Continue reading