views:

175

answers:

0

I am compiling: PropertyInject wiki page

why this line:

builder.RegisterType().InjectProperties();

doesn't compile? how to do property inject in autofac?

I am using vs2010, autofac 2.1.13.813.

thanks.

EDIT: after investigation, PropertyInjection should be like this in new version of AutoFac: builder.RegisterType().PropertiesAutowired(false); and this works.