Delegate.BeginInvoke

It looks like the C # compiler has built-in logic in it to detect the presence of Silverlight by examining the characters inside mscorlib. When a version of mscorlib Silverlight is detected, it will not call the BeginInvoke and EndInvoke elements for any types of delegates that it generates.

This makes sense because these methods do not support Silverlight.

Does anyone know what types / members he uses to initiate this decision (in particular, in the matter of delegation)?

+6
source share
1 answer

I don't know the full answer ... but it looks like my particular problem was caused by an AsyncCallback error. I had it as an AsyncCallback . This, of course, makes sense, because the BeginInvoke and EndInvoke cannot be selected if there is no AsyncCallback delegate.

0
source

Source: https://habr.com/ru/post/889868/


All Articles