[Resolved] Equivalency to constant arrays?
In VB.net (and, I assume, C#), we can't create constant arrays...I guess that limitation makes sense.
I have a dynamic array to which I assign values at design time (it's the user-friendly--i.e. capitalized, spaced, and not abbreviated--names of the columns in a DB of mine) and never change. I'm trying, however, to save a little bit of memory and processing power in my program, and could if I had a constant substitute for the dynamic array that I'm using right now.
I need to be able to reference my values by an index (thus my use of an array in my first design). Is there something that I can easily substitute for my dynamic array that will make my program faster and use less memory?
Thanks a lot for your help,
-Starwiz
In VB.net (and, I assume, C#), we can't create constant arrays...I guess that limitation makes sense.
I have a dynamic array to which I assign values at design time (it's the user-friendly--i.e. capitalized, spaced, and not abbreviated--names of the columns in a DB of mine) and never change. I'm trying, however, to save a little bit of memory and processing power in my program, and could if I had a constant substitute for the dynamic array that I'm using right now.
I need to be able to reference my values by an index (thus my use of an array in my first design). Is there something that I can easily substitute for my dynamic array that will make my program faster and use less memory?
Thanks a lot for your help,
-Starwiz
Last edited: