Sorry if this question is too simple or simple.
I just started learning delegates using C #. When I tried to declare one inside a function, I got design-time errors, but when I declare the same delegate at the class level, it works fine. Why?
If that matters, this is the code: delegate void Test();
source share