Are .NET resource files just for localization?

I've used .resx files in the past to store text files and other things - like requests. It works great because I can say Resource.Queries.BlahQuery. (Yes, I know we should probably use stored procedures, but that's a different story ...)

I will never do localizations on these resources.

It is a bad idea? Am I using .NET resource files incorrectly?

+2


source to share


1 answer


I would not say that you are using them incorrectly. You may not be using your full potential, but that is not the same as overusing them. Their name indicates what they are for; keeping the resources used by this code. Perhaps you want to localize these resources, so there are convenient mechanisms for that. But not doing this should not be considered abuse. Not all the same.



+6


source







All Articles