Employee emp = new Employee(); container.BuildUp(emp);
var obj = container.ResolveIn this example, we are first resolving an instance of MyClass from the container using the Resolve method and then calling the BuildUp method to inject its dependencies. Package Library: Microsoft.Practices.Unity.(); container.BuildUp(obj);