tags:

views:

162

answers:

1

Hi, I am sort of new to Unity all seems to be fine but I am kind of lost when to use ResolvedParameter in Unity.

Googled and looked on MSDN but still cannot understand when to use it.

Do you have a simple example that could illustrate it's use.

Thanks a lot for your help

+1  A: 

It's for method injection; see Entering Configuration Information on MSDN. Scroll down to "Dynamically Configuring Constructor, Property, and Method Injection" and note that the ResolvedParameter is actually a parameter to the InjectionMethod constructor.

I've never encountered a need to use it. Constructor injection will solve 95% of your issues, and property injection will solve the other 5%. (Caveat: I've only used Unity on a couple of projects, so I don't claim to be an expert.)

TrueWill