Kevin Rich
Dealing with XML
A quick guide to the XmlSerializer
I don't work with XML Serialization much, but every now and again I find myself working on something that requires a little XML love. I recently answered a StackOverflow question regarding the subject.
What's covered
- Understanding the parts of an XML document
- Setting up a POCO class to mirror an XML document . . .
Posted in: asp.netserialiazationserializersxml
WebApi JSON Serialization
Circular References FTL
The Challenge
I was building a standard ASP.NET EntityFramework / WebApi / Swagger project. Attempting something a bit new, I decided my controller would return a CreatedAtRoute HttpActionResult. The code goes something a little like this:
[HttpPut]
public IHttpActionResult AddMyObject([FromBody] MyObject newObject)
{ . . .
Posted in: asp.netdevelopmententity-frameworkjsonjsonserializationexceptionmediatypeformatterserialiazationserializerswebapi
Cover image credit: http://whoiskevinrich.com