PLinq and source IEnumerable thread safety
As I discovered that the source IEnumerable is called by PLINQ from multiple threads, it made me thinking: how can it possibly work? E.g. when someone writes code like this: […]
As I discovered that the source IEnumerable is called by PLINQ from multiple threads, it made me thinking: how can it possibly work? E.g. when someone writes code like this: […]
I am trying to play with PLINQ, and I was wondering, if I have an enumerable that, say, reads lines from a file, or stock prices off Yahoo Finance, would […]
I work on a project that uses Unity dependency injection framework. You get objects from container by calling Container.Resolve<SomeType>(). By default each call to Resolve() will return a new object. […]
As certain other “highly integrated” Microsoft technologies, entity framework seems to be high maintenance when it comes to refactoring and moving things around. To move an .emdx file from one […]
Popular belief (reinforced indirectly by MSDN) is that BackgroundWorker class will marshal the “progress” and “completed” events back to the calling thread. This turned out to be most certainly not […]
typeof(decimal).IsPrimitive returns false. Apparently,
This will hopefully become a more organized article with code samples, but I need to record my results for now. Here’s the practical problem I encountered in the application I […]
I never thought about it, but it turns out that exception’s stack trace does not contain the full stack. Instead, it contains only frames between the point where the exception […]
After a long while I am back to dealing with databases directly from ADO.NET. Guys, this is ridiculous. Any serious library designed like that would be heckled. This is what […]
Our UI code is single threaded and UI classes use some shared static data. They work just fine, but the unit tests sometimes fail. Investigation led to threading issues. Visual […]