I’m a beginner in C#.
I want to define a Method that has an input. And the input will be shown in an alert box with this Method.
In other words, the duty of this method is receiving a variable.
Every where that I call this method, the message will be alerted.
I want to know how to define and How to call.
I’m a beginner in C#. I want to define a Method that has an
Share
your return type should be “void”
for example:
you would call your method like this: