Looking back at WPF/Silverlight/WinRT
Last week I had to write a small WPF application, and I was surprised how hard it is to get WPF right. By “right” I mean not just getting the […]
Last week I had to write a small WPF application, and I was surprised how hard it is to get WPF right. By “right” I mean not just getting the […]
I have just run into a problem: a test passes fine on the CI sever, but breaks on my machine. Reason: it gets a wrong config file. Root cause: when […]
This blog entry is mostly for documentation purposes, so I don’t forget what happened. TL;DR: WCF’s DataContractJsonSerializer cannot deal with JToken or JObject. If you attempt to include those in […]
CodeProject Simply put, async and LINQ don’t coexist very well. With “async all the way” approach, LINQ queries have to be unwound back into loops. Frankly, that’s a shame. http://stackoverflow.com/questions/16866331/convert-async-loop-to-linq-query
We just ran into a very funny story with UNICODE identifiers in C#. It turned out that an identifier like ХTranfer was spelled with Russian letter Х (U+0425) instead of […]
Long, very technical story, interesting only to Windows Store programmers. Recording this mostly to document the experience. Scenario 1. We have a universal app that contains a Windows Store and […]
In Visual Studio you can set “Build Action” for a project item to ‘Resource’ or ‘Embedded Resource’, among other things. The difference between the two is confusing, and exact up-to-date […]
Observing Unhandled Exceptions In .NET unhandled exceptions can be observed via AppDomain.UnhandledException event: AppDomain.CurrentDomain.UnhandledException += myHandler; // C# In Win32 unhandled exceptions are observed via SetUnhandledExceptionFilter call: SetUnhandledExceptionFilter(myfilter); // C/C++ […]
If you marshal WPF windows between processes, or do any other cross-process remoting, you can get this error on an unpatched .NET Framework 4: Invalid type code in stream ‘Invalid’ […]
Scenario: You have a shell application that loads plugins. For isolation, each plugin is loaded in its own AppDomain. Question: If plugin causes an exception, how do you prevent it […]