C
C#16mo 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
Kouhai16mo ago
Yes, that's valid c#
Bartixix
BartixixOP16mo ago
Thank you
Accord
Accord16mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?