.Net

JSON serialization – DataContractJsonSerializer vs JavaScriptSerializer

In C#, when you have to work with JSON data you’re usually represented with two choices – DataContractJsonSerializer or JavaScriptSerializer. There are other popular third-party libraries out there, such as the popular Json.Net project, but for the rest of this blog let’s just focus on the two built-in JSON serializers and see how they differ. …

JSON serialization – DataContractJsonSerializer vs JavaScriptSerializer Read More »

IDictionary<string, object> to ExpandoObject extension method

As you know, the ExpandoObject class implements the IDictionary<string, object> interface, so if you have an ExpandoObject you can easily cast it to an IDictionary<string, object> but there’s no built-in way to easily do the reverse. Luckily, I came across a very useful extension method today which converts an IDictionary<string, object> into an ExpandoObject, which …

IDictionary<string, object> to ExpandoObject extension method Read More »

SmartThreadPool – What happens when you take on more than you can chew

I’ve covered the topic of using SmartThreadPool and the framework thread pool in more details here and here, this post will instead focus on a more specific scenario where the rate of new work items being queued outstrips the pool’s ability to process those items and what happens then. First, let’s try to quantify the …

SmartThreadPool – What happens when you take on more than you can chew Read More »

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.

Close