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