Browse by Tags

All Tags » C# (RSS)

Code Snippet for Automatically Implemented Property by Yanesh Tyagi

Code snippets allows programmers to extend auto-complete feature of Visual Studio. Code snippets enables a programmer to create an auto-complete that will appear in the intellisense. It also allows a programmer to define the logic of auto complete. Behind...
Filed under: ,

Implementing Sorting in Generic List (List<T>) by Yanesh Tyagi

How to sort a generic list? Well, generic list provides a sort method itself in the form List<T>.Sort(). But wait a sec. This method requires you to implement sorting mechanism in your type. This is because this method uses default sorting mechanism...
Filed under: , ,

Converting Text into Image On-The-Fly by Yanesh Tyagi

Sometimes we need to convert text into the images on the fly. This code converts the text into image and displays it onto the web page without saving it into a file on the disk. It also takes care of text wrapping. TextToImageConvertor can either be used...
Filed under: , , ,
More Posts