© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
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#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
method reference/callback
C
C# / help
3y ago
Lambda or extension method reference [Answered]
C
C# / help
4y ago
How to Correctly Reference a Method in App.xaml.cs
C
C# / help
13mo ago
❔ A field initializer cannot reference the nonstatic field, method, or property
C
C# / help
4y ago