© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
4 replies
Jexs(ping me)

Please help me to understand this:

Hi i was wondering if i could get some feed back on this code:
using System;
namespace Pratice
{
class Example
{
public void DoSomething()
{
Console.WriteLine("do something with this object");
}
}
class ExampleUser
{
public void UseExample(Example example)
{
Console.WriteLine("this is an example");
}
}
}

public void UseExample(Example example)
{
Console.WriteLine("this is an example");
}
what is it called when we pass another method into another one should i just say "this code is accepting the the class Example as a method reference" what? idk the termnoigly i was wondering if someone could explainthis to me
like whats going on in this example
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

please help me understand this warning
C#CC# / help
2y ago
Learning please help me understand.
C#CC# / help
12mo ago
✅ Help me to understand this question
C#CC# / help
3y ago
Can someone please help me understand this StackOverflow answer?
C#CC# / help
4y ago