view 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
line wrap: on
line source

using System.Xml.Serialization;

namespace Implab.ServiceHost.Unity
{
    public class ArrayParameterElement : AbstractInjectionParameter {

        [XmlAttribute("itemsType")]
        public string ItemsType { get; set; }

        [XmlElement("dependency", typeof(DependencyParameterElement))]
        [XmlElement("value", typeof(ValueParameterElement))]
        [XmlElement("serialized", typeof(SerializedParameterElement))]
        [XmlElement("default", typeof(DefaultParameterElement))]
        public AbstractInjectionParameter[] Items { get; set; }

        public override void Visit(InjectionParameterBuilder builder) {
            builder.Visit(this);
        }
    }
}