The Most Useful .NET Utility Classes Developers Tend To Reinvent Rather Than Reuse

Posted by: youve been HAACKED, on 14 Jun 2007 | View original | Bookmarked: 0 time(s)

System.IO.Path How often do you see code like this to create a file path? public string GetFullPath(string fileName) { string folder = ConfigurationManager.AppSettings["somefolder"]; return folder + fileName; } Code like this drives me crazy because it is so prone to error. For example, when you set the folder setting, you have to remember to make sure it ends with a slash. Having too many things to remember makes this setup fragile. Sure, you write some code to ensure that the folder has...

Advertisement
Free Agile Project Management Tool from Telerik
TeamPulse Community Edition helps your team effectively capture requirements, manage project plans, assign and track work, and most importantly, be continually connected with each other.
Category: .NET | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 737 | Hits: 186

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD