Resources in .Net

So I’m working on my little log program for my transactions. I look into moving my hard-coded strings into a resource file as good practice. I’m finding that in .Net framework 2.0, it is so much easier. I mean … easy easy. Everything is done for me

I added a resource file to my project and just start typing away names and values for each of my strings. From there, every string is directly accessable from a class that the resource designer makes for me as static methods. I’ve never had it so easy.

In the old .Net framework 1.0, It seemed like I had to jump through a few hoops to pull out resource strings. I’m liking the .Net 2.0 more and more every day.

Maybe tomorrow I’ll go ahead and start running FxCop to help me apply Microsoft suggested practices. I usually try to apply them, but I haven’t gotten around to downloading the program for my new compie.

This entry was posted by Second Life resident Dedric Mauriac from Higgins.

Leave a Reply