views:

29

answers:

1

Currently, I do this:

Names -> "name1|name2|name3"

Resource.Names.Split('|');

Is it possible to define those names as an array in the resource file so that I don't have to parse by splitting every time?

Something like the following perhaps?

Names[] -> "name1"
Names[] -> "name2"
Names[] -> "name3"
Resource.Names; // is of type string[]

Is there perhaps another, better way?

A: 

You can use the app settings to store your arrays. Go to your apps properties then the settings tab. You can set the name of your setting, select what type you want, the scope and the values.

For more info: http://msdn.microsoft.com/en-us/library/aa730869%28VS.80%29.aspx

Bruce Adams