C# - How to send an object as JSON using the HttpClient
In C# You can easily send an object as JSON with a couple of lines of code. In the below we have an object with a »
Often when working with JSON you would parse it to a C# object structure that matches your JSON. But sometimes you may want only a subset »
If you are like me and have never had more than two or three packages as dependencies in a python project you have likely never needed »
This post describes how to make a HTTP request with a specific content-type using the HttpClient in C#. Using the HttpClient you can POST JSON or »
Using Dapper you can easily map results of a query to an object or a list of objects. Sometimes you want to select a list of »
Dapper makes it easy to "Execute a query and map the results - if any - to a strongly typed List". This post demonstrates »
This post describes two ways to get the generated identity of a newly inserted row. We will use the following table simple table with an Id »
In C# You can easily send an object as JSON with a couple of lines of code. In the below we have an object with a »
One way to deserialize XML is using the DataContractSerializer. You can read XML and deserialize it into an object or serialize an object into XML. If »
A common reason for this error is that you using the wrong type of project output. In Visual Studio try the following and rebuild: * Right click »
I found many examples on how to do this around the internet: * DataContractSerializer Deserialize list not working * How to Deserialize XML using DataContractSerializer * DataContractSerializer Class But »