Tag Archives: C++

Linq Aggregate Empty Sequence

Linq is great for its compact expressions, and for its — usually efficient — lazy-evaluation. These two virtues seem to be spit upon by the Aggregate function. Say you want to aggregate a list of ints. var s = new int[] {1, 2, 3}; int sum = ints.Aggregate((a,b) => a + b); This works great [...]
Posted in Software Development, Technology | Also tagged | 1 Comment

C++/CLI Converting from String to wchar_t and to char*

I recently started working on a managed wrapper for the Terminal Services API, and as my C++/CLI is a bit rusty I ran into some issues which I’m sure are common when trying to handle the impedance mismatch between the managed and unmanaged worlds. I’m going to take a look at one of those issues [...]
Posted in Software Development, Technology | Also tagged , | Leave a comment