Delegate with Task problem
I decided to work with delegates. I chose to do different kinds of sorting. I made a Sort class, where the name and the SortMethod response are located, but when I started to look at the results, I saw that the sorting that was not performed until that moment of output is simply not output (an error appears on result = null). Does anyone know why var result = await sortDelegate.SortMethod; doesn't work?
6 Replies
i think we will need to see the full code
you can $paste it
If your code is too long, you can post to https://paste.mod.gg/ and copy the link into chat for others to see your shared code!
BlazeBin - lldfmlogsxih
A tool for sharing your source code with the world!
I pasted all code
sorry, i took a nap right after asking for the code