Jeff Schumacher
unread,Sep 2, 2009, 3:32:31 PM9/2/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to structuremap-users
Assuming that I remember correctly, and it seems so from experience,
StructureMap will always use the greediest constructor when
instantiating a class.
How can we tell SM to not use the greediest constructor?
Example, a class has 2 constructors, one without parameters, and the
other with a single parameter. I want SM to give me an instance of the
class using the parameterless constructor.
Thanks!
Jeff