C
C#15mo ago
Bartixix

❔ Making a method reference

Is this the correct way to call a method from other class in one main file or is something else better?
public static void Method(int a) => AnotherClass.Method(a);
public static void Method(int a) => AnotherClass.Method(a);
3 Replies
Kouhai
Kouhai15mo ago
Yes, that's valid c#
Bartixix
BartixixOP15mo ago
Thank you
Accord
Accord15mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server