The most efficient way to store large amounts of static strings

in my C # application I need to store a huge number of constant strings in arrays, for example, one array for names and one for last name, etc.

These lines never change, so my question is how to store them?

Make a static constant class with these arrays?

Download them at runtime somewhere?

Or any other solution ...

PS: I do not need external files, so if I download them from somewhere, they must be included in .exe

EDIT: // So I just make resource files with string [] arrays, alrigt :)

+5
source share
2 answers

.
, Constants, .

http://www.sliver.com/dotnet/articles/resinweb.aspx

, , 'const'.

  public const string myVariable = "some static text";

, , .

. , string [], , , , , .

+5

, . Cache, .

Grz, Kris.

+1

All Articles