Anthony

Anthony

  • NA
  • 17
  • 0

Public lists?

Aug 31 2008 11:10 AM

Okay, I have looked for this one, but I can't seem to find it anywhere. How can I make a list publicly accessible? I have tried the regular way:


class Program
{
public static void Main()
{

public
List<string> listAges = new List<string>();

...but that just gives me two errors.
The error on public = "invalid expression term 'public'"
The error on List = "; expected"

Did I skip a page or something? Can I not make a public list?


Answers (2)