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

code cleanup and refactoring
author cin
date Fri, 01 Jun 2018 21:35:24 +0300
parents 6691aff01de1
children
comparison
equal deleted inserted replaced
280:f07be402ab02 281:e0916ddc9950
1 using System.Xml.Serialization; 1 using System.Xml.Serialization;
2 2
3 namespace Implab.ServiceHost.Unity 3 namespace Implab.ServiceHost.Unity
4 { 4 {
5 public class ArrayParameterElement : InjectionParameterElement { 5 public class ArrayParameterElement : AbstractInjectionParameter {
6 6
7 [XmlAttribute("itemsType")] 7 [XmlAttribute("itemsType")]
8 public string ItemsType { get; set; } 8 public string ItemsType { get; set; }
9 9
10 [XmlElement("dependency", typeof(DependencyParameterElement))] 10 [XmlElement("dependency", typeof(DependencyParameterElement))]
11 [XmlElement("value", typeof(ValueParameterElement))] 11 [XmlElement("value", typeof(ValueParameterElement))]
12 [XmlElement("serialized", typeof(SerializedParameterElement))] 12 [XmlElement("serialized", typeof(SerializedParameterElement))]
13 [XmlElement("default", typeof(DefaultParameterElement))] 13 [XmlElement("default", typeof(DefaultParameterElement))]
14 public InjectionParameterElement[] Items { get; set; } 14 public AbstractInjectionParameter[] Items { get; set; }
15 15
16 public override void Visit(InjectionParameterBuilder builder) { 16 public override void Visit(InjectionParameterBuilder builder) {
17 builder.Visit(this); 17 builder.Visit(this);
18 } 18 }
19 } 19 }