How to be a method that does not see the option?

Actually I have two classes.
In one class (Called Gg.cs) I have created a method
public void Method(string g);
And basically pressing his cause, but in the button it is recorded as
How to make run method in the main class without specifying a parameter
April 4th 20 at 13:00
1 answer
April 4th 20 at 13:02
change your method to
public void Method(string g=null);
or add a second method
public void Method(){ Method(null);}

Find more questions by tags C#