© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
3 replies
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);
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

method reference/callback
C#CC# / help
3y ago
Lambda or extension method reference [Answered]
C#CC# / help
4y ago
How to Correctly Reference a Method in App.xaml.cs
C#CC# / help
13mo ago
❔ A field initializer cannot reference the nonstatic field, method, or property
C#CC# / help
4y ago