coding an array in a class library and make a call to it C#

Posted by eddy on Stack Overflow See other posts from Stack Overflow or by eddy
Published on 2010-04-14T02:15:09Z Indexed on 2010/04/14 2:23 UTC
Read the original article Hit count: 354

Filed under:
|
|

I'm new to C#, so this may be a basic question. What I need to do is put an array such as the one below in a class library and then make a call to it. So I'd want the aproprate picture to appear via the class and this array. I know there's a much simpler way to make certain pictures appear, but this is a requirement for the project. It's an asp.NET website in C#.

string[] PictureArray;

PictureArray = new string[3];

PictureArray[0] = "~/pics/grl.jpg";

PictureArray[1] = "~/pics/pop.jpg";

PictureArray[2] = "~/pics/str.jpg";

PictureArray[3] = "~/pics/unk.jpg";

© Stack Overflow or respective owner

Related posts about c#

Related posts about class