comparison Implab.ServiceHost/Unity/ValueParameterElement.cs @ 278:6691aff01de1 v3

Implab: added XmlDefaultSeializer (SerializersPool is now obsolete) Implab.ServiceHost: rewritten TypeReference (added support for nested types), stable API
author cin
date Thu, 03 May 2018 09:59:44 +0300
parents 963b17c275be
children e0916ddc9950
comparison
equal deleted inserted replaced
277:963b17c275be 278:6691aff01de1
11 11
12 string GetTextValue() { 12 string GetTextValue() {
13 return string.IsNullOrEmpty(Value) ? Text : Value; 13 return string.IsNullOrEmpty(Value) ? Text : Value;
14 } 14 }
15 15
16 public override void Visit(InjectionValueBuilder builder) { 16 public override void Visit(InjectionParameterBuilder builder) {
17 var type = builder.ResolveInjectedValueType(TypeName); 17 var type = builder.ResolveInjectedValueType(TypeName);
18 builder.SetValue(type, TypeDescriptor.GetConverter(type).ConvertFromString(GetTextValue())); 18 builder.SetValue(type, TypeDescriptor.GetConverter(type).ConvertFromString(GetTextValue()));
19 } 19 }
20 } 20 }
21 } 21 }