C
C#8mo ago
eid

why that?

System.PlatformNotSupportedException: Operation is not supported on this platform. at System.Func`2.BeginInvoke(T arg, AsyncCallback callback, Object object)
8 Replies
reflectronic
reflectronic8mo ago
because BeginInvoke is not supported anymore
eid
eidOP8mo ago
why they did that? it's good and useful
reflectronic
reflectronic8mo ago
no, it is using deprecated technology, which is why it was removed in new versions of .NET you should use Task.Run instead, it is a better replacement and it integrates with await which is the reccomended pattern
eid
eidOP8mo ago
ok, if it is deprecated ,why they still found, and i can reach to it
reflectronic
reflectronic8mo ago
because the .NET assembly format requires that it exists
Angius
Angius8mo ago
Same reason non-generic collections and WebClient are still a thing Backwards compatibility to a fault
eid
eidOP8mo ago
u mean no way to use it?
Angius
Angius8mo ago
No, no way to use it

Did you find this page helpful?