|
|
@ -524,7 +524,9 @@ namespace ZeroLevel.Services.Config
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
member.Setter(instance, First(member.Name));
|
|
|
|
var item = First(member.Name);
|
|
|
|
|
|
|
|
var itemType = member.ClrType;
|
|
|
|
|
|
|
|
member.Setter(instance, StringToTypeConverter.TryConvert(item, itemType));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
default: // array, or first
|
|
|
|
default: // array, or first
|
|
|
@ -569,7 +571,9 @@ namespace ZeroLevel.Services.Config
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
member.Setter(instance, First(member.Name));
|
|
|
|
var item = First(member.Name);
|
|
|
|
|
|
|
|
var itemType = member.ClrType;
|
|
|
|
|
|
|
|
member.Setter(instance, StringToTypeConverter.TryConvert(item, itemType));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|