Category Archives: Programming

Some stuff about programming. Sharing random experiences and code I wrote

Allocating arrays of function pointers in C

Dynamically allocate array of 2 pointers to functions returning int and taking no argument.

Statically allocate array of 2 pointers to functions returning int and taking no argument.

Read more »

C# snippet : JSONify object

One of my most favorite C# snippet is following oneliner useful when quick debugging or checking on something is needed.

Which returns String containing JSON representation of arbitrary C#… Read more »

You must set this property to a non-null value of type ‘System.Int64’.

Recently I encountered following problem in C#.

This error is pretty obvious in certain context, but if you don’t read it carefully enough, in some situations you might get… Read more »