What’s the difference between XMLWriter and XMLDictionaryWriter? In which cases is each one generally used?
What’s the difference between XMLWriter and XMLDictionaryWriter ? In which cases is each one
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
XmlWriteris an abstract class of whichXmlDictionaryWriteris one of the classes that inherits from it and is itself an abstract class.I am taking a stab in the dark that you want to use it with the
DataContractSerializeror with de/serialization in general. TheXmlDictionaryWriteris the base class used by WCF to do its de/serialization.From that I would deduce that there must be some performance tuning in the
XmlDictionaryWriterto make it more performant with WCF de/serialization tasks. In fact if you call theWriteObject(Stream, object)instead ofWriteObject(XmlWriter, object)orWriteObject(XmlDictionaryWriter, object)methods it will create anXmlDictionaryWriterfor you