Apr
11th

Free Tool - Extract Hard Coded Strings to Resource Files

Posted by Shahar Y |
Filed under .Net, C#, Utilities, Visual Studio |

Recently, I ran into a great free Microsoft tool which is called - Resource Refactoring Tool. This tool provides developers an easy way to extract hard coded strings from the code to resource files.
Resource files (.resx files) consists of XML entries, which specify objects and string inside XML tags. Those files can be opened with [...]


Continue Reading...
Mar
27th

A Better Way to Extract Data from DateTime

Posted by Amit |
Filed under .Net, C# |

Lately I took part in several code reviews and I noticed that whenever people need to extract the month name from the datetime object many different solutions are presented. Some of the solutions were not very successful, so I decided to shed some light on this issue through an example.
These are the most common (and [...]


Continue Reading...
Mar
11th

A Simple Example of Extention Methods in C# 3.0

Posted by Amit |
Filed under C# |

Extention Methods are a very useful tool we just got in C# 3.0. We could define them as static methods that extend existing classes, Even System classes!!!
If we wanted to do something like that in the past we had to derive from the selected class and extend it with whatever we wanted. But what if [...]


Continue Reading...