You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
System.Xml.XmlSerializer cannot serialize System.Nullable<t> as attribute #1412
System.InvalidOperationException occurred
HResult=-2146233079
Message=Cannot serialize member 'ResX' of type System.Nullable`1[System.Double]. XmlAttribute/XmlText cannot be used to encode complex types.
Source=System.Xml.XmlSerializer
StackTrace:
at System.Xml.Serialization.XmlReflectionImporter.ImportAccessorMapping(MemberMapping accessor, FieldModel model, XmlAttributes a, String ns, Type choiceIdentifierType, Boolean rpc, Boolean openModel, RecursionLimiter limiter)
InnerException:
Activity
joshfree commentedon May 3, 2016
cc: @zhenlan
khdang commentedon May 3, 2016
@SamuelEnglard can you provide an example to reproduce this issue?
shmuelie commentedon May 3, 2016
This should do it
SGuyGe commentedon May 5, 2016
Does this also happen on desktop .NET?
shmuelie commentedon May 6, 2016
@SGuyGe Can reproduce in Desktop .NET 2.0 through 4.6.2
karelz commentedon Nov 4, 2016
Someone needs to debug it and find out which code to change.
huanwu commentedon Aug 16, 2018
The fix is more complex than expected. Move to future. Refer dotnet/corefx#30536.
StephenBonikowsky commentedon Feb 28, 2020
Due to the complexity of the fix and that it also exists in the full framework and that it is also a corner case will not fix.