I am trying to use delegates for reflection in a dotNet network application. Below is a sample code.
Action action = (Action) Delegate.CreateDelegate(typeof(Action), method)
The compiler produces the following error:
'Delegate' does not contain a definition for 'CreateDelegate' ConsoleApp2..NETCoreApp,Version=v1.0'
Is there any work to create delegates in .net Core?
source share