C
C#2y 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
reflectronic2y ago
because BeginInvoke is not supported anymore
eid
eidOP2y ago
why they did that? it's good and useful
reflectronic
reflectronic2y 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
eidOP2y ago
ok, if it is deprecated ,why they still found, and i can reach to it
reflectronic
reflectronic2y ago
because the .NET assembly format requires that it exists
Angius
Angius2y ago
Same reason non-generic collections and WebClient are still a thing Backwards compatibility to a fault
eid
eidOP2y ago
u mean no way to use it?
Angius
Angius2y ago
No, no way to use it

Did you find this page helpful?