Update BaseConfiguration.cs

pull/1/head
Ogoun 5 years ago
parent ddbb111d40
commit a6eb051cab

@ -508,7 +508,7 @@ namespace ZeroLevel.Services.Config
member.Setter(instance, value); member.Setter(instance, value);
} }
else if (TypeHelpers.IsUri(member.ClrType)) else if (TypeHelpers.IsUri(member.ClrType))
{ {
var uri = new Uri(First(member.Name)); var uri = new Uri(First(member.Name));
member.Setter(instance, uri); member.Setter(instance, uri);
} }
@ -552,7 +552,7 @@ namespace ZeroLevel.Services.Config
member.Setter(instance, arrayBuilder.Complete()); member.Setter(instance, arrayBuilder.Complete());
} }
} }
else if (TypeHelpers.IsEnumerable(member.ClrType)) else if (typeof(string) != member.ClrType && TypeHelpers.IsEnumerable(member.ClrType))
{ {
var itemType = member.ClrType.GenericTypeArguments.First(); var itemType = member.ClrType.GenericTypeArguments.First();
if (itemType == typeof(string)) if (itemType == typeof(string))

Loading…
Cancel
Save

Powered by TurnKey Linux.