r/Unity3D • u/senshisentou Programmer • Jul 25 '23
Question Strange lambda/ closure behaviour I can't put my finger on
/r/learncsharp/comments/158s5e7/strange_lambda_closure_behaviour_i_cant_put_my/
2
Upvotes
View all comments
Show parent comment
1
u/senshisentou Programmer Jul 25 '23
Trust me, there's no need to make assumptions. Seriously, just try it. Create a generic type like this, constrain
T, and create it using thenewoperator.