Imported Upstream version 4.8.0.344

Former-commit-id: 609085c14e6ad2a66429d180056034e93c0547d2
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-11-16 13:31:47 +00:00
parent 94b2861243
commit 62edeef69b
89 changed files with 4558 additions and 65 deletions

View File

@ -737,7 +737,8 @@ namespace System.Xml.Serialization
Type type = listType.Type;
if (type.IsArray)
{
list = EnsureArrayIndex ((Array)list, index, type.GetElementType());
list = EnsureArrayIndex ((Array)list, index, type.GetElementType ());
listType.ConvertForAssignment (ref value);
((Array)list).SetValue (value, index);
}
else // Must be IEnumerable