DataContractSerializer: preserve string member that happens to be raw xml?
Posted
by bwerks
on Stack Overflow
See other posts from Stack Overflow
or by bwerks
Published on 2010-06-01T15:00:20Z
Indexed on
2010/06/01
15:03 UTC
Read the original article
Hit count: 276
I'm a little inexperienced with the DataContract paradigm, and I'm running into a deserialization problem. I have a field that's a string, but it contains xml and it's not being deserialized correctly. I have a feeling that it's because the DCS is treating it as input to the serializer and not as an opaque string object.
Is there some way to mark a DataMember in code to say "This thing is a string, don't treat its contents as xml" similar to XmlIgnore?
Thanks!
© Stack Overflow or respective owner