comparison Implab.ServiceHost/Unity/InjectionValueBuilder.cs @ 281:e0916ddc9950 v3 tip

code cleanup and refactoring
author cin
date Fri, 01 Jun 2018 21:35:24 +0300
parents 8714471e8d78
children
comparison
equal deleted inserted replaced
280:f07be402ab02 281:e0916ddc9950
96 } 96 }
97 97
98 if (itemsType == null) 98 if (itemsType == null)
99 throw new Exception("Failed to determine array elements type"); 99 throw new Exception("Failed to determine array elements type");
100 100
101 InjectionParameterValue[] injections = (arrayParameter.Items ?? new InjectionParameterElement[0]) 101 InjectionParameterValue[] injections = (arrayParameter.Items ?? new AbstractInjectionParameter[0])
102 .Select(x => { 102 .Select(x => {
103 var builder = new InjectionParameterBuilder(m_resolver, itemsType); 103 var builder = new InjectionParameterBuilder(m_resolver, itemsType);
104 x.Visit(builder); 104 x.Visit(builder);
105 return builder.Injection; 105 return builder.Injection;
106 }) 106 })