SerializedElement.cs
28 lines
| 782 B
| text/x-csharp
|
CSharpLexer
cin
|
r273 | using System; | |
using System.Xml; | |||
using System.Xml.Serialization; | |||
namespace Implab.ServiceHost.Unity | |||
{ | |||
cin
|
r277 | public class SerializedElement : InstanceAbstractRegistration { | |
cin
|
r273 | [XmlAttribute("href")] | |
public string Location { get; set; } | |||
[XmlAttribute("serializedType")] | |||
public string SerializedType { get; set; } | |||
[XmlAnyElement] | |||
public XmlElement[] Content { get; set; } | |||
cin
|
r274 | ||
cin
|
r277 | public override void Visit(InstanceRegistrationBuilder builder) { | |
base.Visit(builder); | |||
cin
|
r273 | ||
cin
|
r277 | var parameter = new SerializedParameterElement { | |
TypeName = SerializedType, | |||
Location = Location, | |||
Content = Content | |||
}; | |||
parameter.Visit(builder.ValueBuilder); | |||
cin
|
r275 | } | |
cin
|
r273 | } | |
} |