views:

84

answers:

1

I've used .resx files in the past to store text files and other things - queries for example. It works great because I can say Resources.Queries.BlahQuery. (Yes, I know we should probably used stored procedures, but that's another story...)

I'll never be doing any localization on these resources.

Is this a bad idea? Am I misusing .NET resource files?

+3  A: 

I wouldn't say that you misuse them. Perhaps you don't use their full potential, but that is not the same as misusing them. Their name indicate what they are for; storing resources that the code uses. It may be that you want to localize these resources, so there are convenient mechanisms for doing so. But not doing so is not to be considered a misuse. Not by me anyway.

Fredrik Mörk