Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make method call another method in the same class? [duplicate]

Tags:

I have a class called methods.cs contains two methods.

For example method1 and method2

I want to make method2 call method1

Code clarification:

public static void Method1()
{
// Method1
}

public static void Method2()
{
// Method2
}

I want to make Method2 call Method1. How can I achieve that?


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!