<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="unity" type="Microsoft.Practices.Unity.Configuration.UnityConfigurationSection,Microsoft.Practices.Unity.Configuration"/> </configSections> <unity xmlns="http://schemas.microsoft.com/practices/2010/unity"> <!--引用命名空间--> <namespace name="ConsoleApplication1.UnityDemo.Constructor" /> <!--引用程序集--> <assembly name="ConsoleApplication1" /> <!--容器--> <container name="FirstClass"> <!--映射关系--> <register type="IClass" mapTo="CbClass"></register> <register type="IClass" name="ec" mapTo="EcClass"></register> <register type="IStudent" mapTo="QlinStudent"> </register> </container> </unity> </configuration>
上面红色部分可以引用多个命名空间和程序集吗?
没人回答吗?