In a Windows 10 Universal app I'm getting an error when trying to use the DataContractSerializer
Type 'System.Collections.Generic.List`1[System.SByte]' cannot be serialized, serialization code for the type is missing.Consult the SDK documentation for adding it as a root serialization type.
I'm not using the DCS directly, but within the context of a WCF call to a service operation.
I haven't been able to work out what runtime directive(s) would fix this problem. The following doesn't help:
<Type Name="System.Collections.Generic.List{System.SByte}"
Dynamic="Required Public"
DataContractSerializer="Required Public"
Browse="Required All"
Serialize="Required All"/>
According to the documentation (https://msdn.microsoft.com/en-us/library/dn627478(v=vs.110).aspx), your declaration of
List<SByte>
is incorrect. You only have to indicate the number of generic parameters, not their actual type: