comparison Implab.ServiceHost/Unity/ContainerElement.cs @ 271:d4d437ec4483 v3

Working on Unity xml configuration
author cin
date Wed, 25 Apr 2018 19:23:35 +0300
parents ade80d94dfb5
children 79110a16cab7
comparison
equal deleted inserted replaced
270:ade80d94dfb5 271:d4d437ec4483
20 Items.Add(registration); 20 Items.Add(registration);
21 } 21 }
22 } 22 }
23 23
24 public void WriteXml(XmlWriter writer) { 24 public void WriteXml(XmlWriter writer) {
25 throw new System.NotImplementedException(); 25 foreach(var item in Items) {
26 var serializer = new XmlSerializer(item.GetType());
27 serializer.Serialize(writer, item);
28 }
26 } 29 }
27 } 30 }
28 } 31 }