Delegate recreated every frame if created inside update

We found some workaround that is kinda works nice:
Consider this C# code:

public delegate YGSize DDDD(object? context, float width, YGMeasureMode widthMode, float height, YGMeasureMode heightMode);

Now a little wrapper:

Produces:

Our observations revealed few points:

  1. Delegate has named inputs
  2. Content of delegate is changeable without recreation, however if you add remove nodes you need to trigger recreate.

So far I guess will stay on this method.