© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
7 replies
MTMB

Is there some way that I can have a method in a Dictionary?

For example something like this:
Dictionary<string, method> test = new Dictionary<string, method>();
test.add("Something", MyMethod());
Dictionary<string, method> test = new Dictionary<string, method>();
test.add("Something", MyMethod());
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

❔ is there a way for a method to have interchangeable parameter?
C#CC# / help
3y ago
❔ How can i acces to a Method that is internal?
C#CC# / help
3y ago
[Unity] Is there a way to have a ContextMenu give an arguement to a method?
C#CC# / help
16mo ago
❔ Is there a way I can make a terminal downloader?
C#CC# / help
3y ago