1
Q:

c# error CS0515

error CS0515: 'Forest.Forest()': static constructor cannot have an 
access modifier

/*	This error usually means you labeled a static constructor
	as public or private, which is not allowed					*/
    
public static Forest() //causing error
static Forest() //fixing error
1

New to Communities?

Join the community