You've already forked linux-packaging-mono
Imported Upstream version 4.8.0.344
Former-commit-id: 609085c14e6ad2a66429d180056034e93c0547d2
This commit is contained in:
parent
94b2861243
commit
62edeef69b
@ -135,10 +135,16 @@ namespace System.Xml.Serialization
|
||||
|
||||
void LookupTypeConvertor ()
|
||||
{
|
||||
// We only need this for System.Xml.Linq.
|
||||
var convertor = type.GetCustomAttribute<XmlTypeConvertorAttribute> ();
|
||||
if (convertor != null)
|
||||
typeConvertor = type.GetMethod (convertor.Method, BindingFlags.Static | BindingFlags.NonPublic);
|
||||
// We only need this for System.Xml.Linq
|
||||
var t = type;
|
||||
// HACK: because interpreter array handling is so bad
|
||||
if (t.IsArray)
|
||||
t = t.GetElementType ();
|
||||
|
||||
var convertor = t.GetCustomAttribute<XmlTypeConvertorAttribute> ();
|
||||
if (convertor != null) {
|
||||
typeConvertor = t.GetMethod (convertor.Method, BindingFlags.Static | BindingFlags.NonPublic);
|
||||
}
|
||||
}
|
||||
|
||||
internal void ConvertForAssignment (ref object value)
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user