2
Answers

Public lists?

Anthony

Anthony

16y
2.1k
1

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)