C# Lambdas: Do you know what you captured?
Posted a larger and more structured article on the (somewhat surprising) capture rules for outer variables inside C# lambdas. http://www.ikriv.com/en/prog/info/dotnet/Lambdas.html
Posted a larger and more structured article on the (somewhat surprising) capture rules for outer variables inside C# lambdas. http://www.ikriv.com/en/prog/info/dotnet/Lambdas.html
BTW, in earlier versions of Visual Studio (definitely VC++ 6, but maybe later) it was possible to add an arbitrary custom compilation step for a file, that worked just fine […]
Text Template Transformation Toolkit (T4) is a code generator built into Visual Studio 2008 and 2010. Yes, you have it now on your machine 🙂 It was proposed to me […]
I had an interesting bug the other day. I wrote a foreach loop along these lines: foreach (var entry in controlsByName) { entry.Key.SomeEvent += (sender,args)=>{ProcessControlName(entry.Value);} } Looks innocent enough, […]
For real. When you install a program that associates itself with image files, you may lose your thumbnails capability in Windows XP. It shows a giant icon of the program […]
Recently I needed to let remote users to transfer several hunderd megabytes of data to my machine. In the old days I would just go ahead and setup an FTP […]
I have downloaded Live+Press plugin for WordPress that can synchronize my WordPress-based blog and my LiveJournal. Of course, with my luck, nothing worked out of the box. After several debugging […]
I am writing a WPF app. In WPF they like very much all kinds of notifications about property changes. Thus, I’ve got a class with a bunch of properties similar […]
I think I have finally found one that seems to do everything I need. This is quite an elaborated piece of software, I am only starting to investigate it, but […]
I am using WPF and MVVM. I have a Window and a view model attached to it via Datacontext. The window has a listbox, and its items have context menu. […]