Naming convention for keys in resource files

  • Thread starter Thread starter Joey Lee
  • Start date Start date
J

Joey Lee

Hi,

Microsoft provided some naming conventions for namespace, classes,
properties and etc. However I am looking for naming convention for keys in
resource files for multiple languages. Any ideas?

Thanks

Joey
 
Hi Joey,

I don't know it this would help. I usually create a helper class for
extracting resources from resx files. I define an enumeration with keys for
each entry in the resx, and would pass that enumeration to a method in the
helper class, which would call the enum.ToString and fetch the required value.

In other words, the resx files keys would have the same name as that of the
enum constants. Consequently, the naming conventions for my resx entries
follow the standards for enumerations.
 
Thanks for the input.

Rakesh Rajan said:
Hi Joey,

I don't know it this would help. I usually create a helper class for
extracting resources from resx files. I define an enumeration with keys
for
each entry in the resx, and would pass that enumeration to a method in the
helper class, which would call the enum.ToString and fetch the required
value.

In other words, the resx files keys would have the same name as that of
the
enum constants. Consequently, the naming conventions for my resx entries
follow the standards for enumerations.

--
HTH,
Rakesh Rajan
MVP, MCSD
http://www.msmvps.com/rakeshrajan/
 
Back
Top