Ran across this nifty little tool, so I decided to create a whole new feed dedicated to some neat tools I have come across in my travels. So here's the first one.
This tool is an addin which takes source code from the Visual Studio IDE, and formats it in HTML so you can post it on the web, in a blog, etc. It's easy to access and use, just a simple right-mouse click. And now the moment of truth, what it looks like:
public static string ReadConfigurationValue(string p_strConfigString)
{ try
{ string strValue = "";
System.Configuration.AppSettingsReader l_configurationAppSettings = new System.Configuration.AppSettingsReader();
l_configurationAppSettings = new System.Configuration.AppSettingsReader();
strValue = (string)(l_configurationAppSettings.GetValue(p_strConfigString,Type.GetType("System.String")));
return strValue;
}
catch (Exception ex)
{ ErrorHandler.LogError(ex);
return "";
}
}
So far, it looks great. I will need to get used to a couple of little quirks, but all in all, I am impressed!
Where to get this great tool?
http://www.jtleigh.com/people/colin/blog/archives/2004/10/copysourceashtm_1.html
Enjoy!