Can't declare a public List(Solved)

In the main Game1.cs class I tried to declare a List: as public

public static List<projectile> Projectiles = new List<projectile>();

but it gives me this error:

Inconsistent accessibility: field type 'List is less accessible than field ‘Game1.Projectiles’

(I can confirm by taking away “public” that it’s the reason)

How come this is happening? On my other program I declared a public static list in Game1.cs and it worked fine. What gives? The classes are public, too.

SOLVED: Just had to make projectile.cs a public class

Yea classes are internal by default so it must be at least as accessible as the list.

See here for more