My Programming My Page

Posts

Covariance and contravariance of generic parameter

03 May 2015

It is a popular topic at C#/.NET job interviews or performance reviews. And while many show a general understanding, fewer can write some code examples with those in and out modifiers. In this post I'll try to give those examples that I believe help in understanding the concept of the topic.

More ...

Dynamic parameter type and RuntimeBinderException

20 Feb 2015

I have once found that it may be quite surprising behavior of your program when using dynamic typing. Let's look at the following C# code that turns a string into a list of strings. No dynamic typing so far, all static:

More ...

Parsing JSON in IronPython

02 Feb 2015

I was working with TIBCO Spotfire that has hosted IronPython scripting. And I had to process some JSON data, which is easy in Python by doing import json. But that construct gives an import error in IronPython "No module named json".

More ...
Previous Page Next Page