views:

67

answers:

0

I am using StructureMap with VS 2005. I want to inject a class like this:

public class MyClass : IMyInf {
    public MyClass(int id) {...}
....
}

I tried several methods such as:

ForRequestedType<IMyInf>>().TheDefault.Is.
  OfConcreteType<MyClass>().WithProperty("id").Equals(2)

I got compiling error with .Net 3.5 Linq required. Is there any way for SM to create MyClass as injection instance in VS 2005?