title: How to pass a lambda expression to a C# constructor from an IronPython script?
body: <p>I'm integrating an IronPython scritping engine into my C# raytracer which, so far, has been a breeze even though I'm completely new to Python. There is one particular thing, though, that I need help with. I have a C# class which defines a constructor like this:</p>
  
  <pre><code>public CameraAnimation(Action&lt;Camera, float&gt; animation)
  </code></pre>
  
  <p>In C#, I would instantiate this like so:</p>
  
  <pre><code>var camAnimation = new CameraAnimation((camera, time) =&gt; camera.Position += new Vector(1, 0, 0));
  </code></pre>
  
  <p>I can't quite figure out how to make a similar assignment for the Action object in IronPython, so how would the Python syntax look?</p>