Resources made easy in .NET 2.0

written by Ryan Olshan on Tuesday, January 24 2006

Accessing a resource file in .NET 2.0 is very easy without the need for a ResourceManager.

Resources.<ResourceFileName>.<Property>

So, if the resource file was named Resource.resx and you are trying to access a string property named Title, then:

Resources.Resource.Title

Pretty cool, huh.

Kick this post on .NET Kicks

Similar Posts

  1. Tweaking Community Server Out of the Box
  2. Accessing Config File Mail Settings Programmatically
  3. Forms authentication and images/style sheets

Post a comment