Search
Get Started
C
C#
•
3y 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);
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,124
Members
View on Discord
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
public
static
void
Method
(
int
a
)
=>
AnotherClass.
Method
(a);
public
static
void
Method
(
int
a
)
=>
AnotherClass.
Method
(a);
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
11mo ago
❔ A field initializer cannot reference the nonstatic field, method, or property
C
C# / help
3y ago