Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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
Source by www.codecademy.com #
 
PREVIOUS NEXT
Tagged: #error
ADD COMMENT
Topic
Name
3+4 =