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

Did you find this page helpful?