mardi 28 avril 2020

C# Pass any method as parameter

I'm making a networking application and i'd like to be able to pass methods no matter the parameters so i can get them and store them in a dictionnary so that once a packet arrive i am able to read it using the parameters the same remote method used

I'd like something like this:

Register(Enum key, [method with unknown parameters])

I've looked everywhere for an answere but none fit my issue





Aucun commentaire:

Enregistrer un commentaire