C# web application using an array instead of a database table

I have an application that I have built and my code behind is generating an interface and part of that interface there is a number location. I want to display about 20 different instances of this interface and each instance to have a specific number. There is no pattern with these numbers they are random numbers. I know I could store these numbers in a one column table and loop through each record and display the interface with the number for each record. but I don't ahve access to a database for this application so I figure I would use an array (this is a temporary project).
So how do I implement an single column array in C#. Below is a sample of the array I would like to use.
How in my code would I loop through each 'record' in the array while looping and displaying an instance of the interface with the 'number' from the array

2
4
5
7
8
22
33
34
66
77
99
120
LVL 1
chicabowAsked:
Who is Participating?
 
photowhizCommented:
int[] numbers = {2, 4, 5, 7, 8, ...};
foreach (int n in numbers)
    DoWhatYouWantWith(n);
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.