How to call a static function from another static function

public static void func1(string a,string c)

{

func2(a,c)--- error

}

public static void func2(string a,string c)

{


}

If wrong, correct. I need a function that will be called that way ... function to static.please help

+3
source share
3 answers

Is the error a missing semicolon? The absence of an error message makes this game a guessing game.

+3
source

There is nothing wrong. Forgot ","

Or your names conflict with those already in use. Try changing them and see what happens.

+2
source

. .

0

Source: https://habr.com/ru/post/1757133/


All Articles