This project has moved and is read-only. For the latest updates, please go here.

ImportingConstructor with arguments

Jan 13, 2011 at 9:05 PM

Hello everyone,

I have a Problem with MEF and Constructor arguments.

I have a class:

class Foo : IFoo
  private readonly int z;

  public Foo(int x, int y)
    z = x + y;

  public int Z
    get { return z; }

Now i need MEF to create a couple of instances of this class, using different x and y values.

How do i do this?