vb.net - Will .NET 4.x lambdas work in 3.5 (and lower) after compilation? -


i'm working on application targeting .net framework 4.0. app uses lambdas raise events tread-safely, , want compatible older .net framework versions. know sub() lambda (for example) isn't supported in .net 3.5... or @ least not during compile time.

but after application compiled? lambda rewritten in il work in .net 3.5 (and lower) too, or limited .net 4.x?

example of 1 of methods:

private sub threadsaferaise_connectionresponsereceived(byval sender object, byval e fftevents.connectionresponsereceivedeventargs)     if ownerform.invokerequired = true         ownerform.invoke(sub() threadsaferaise_connectionresponsereceived(sender, e)) 'will work in .net 3.5 after compilation?     else         raiseevent connectionresponsereceived(sender, e)     end if end sub 


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -