views:

68

answers:

0

i am using third party library where i need to pass in array of empty assembly. the constructor of the class is:

MyService(IEnumerable<Assembly> assemblies)
{}

in my case the list will be empty. i tried the following with empty value but

<component id="service" type="MyService, S"
           service="IMyService, S">
      <parameters>            
        <assemblies>
          <array></array>
        </assemblies>
      </parameters>
    </component>

and also

<array>
<value></value>
</array>

but it is failing in both cases. if i was initializing it in code, i would be doing:

new MyService(new Assembly[]{});

any pointer on achieving it in Windsor container will be appreciated.

related questions