C# decimal.Parse() won't parse 1e-10
In C# code you can write something like decimal d = 1e-10m; However, decimal.Parse(“1e-10”) throws an exception: “System.FormatException: Input string was not in a correct format”. Not cool.
In C# code you can write something like decimal d = 1e-10m; However, decimal.Parse(“1e-10”) throws an exception: “System.FormatException: Input string was not in a correct format”. Not cool.
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 […]
I did more investigation on the bindings (duh, only two months later). It turns out the bindings are replaced when the value of the target dependency property is replaced. This […]
I am kinda tired of this MVVM/bindings crap. I feel like my hands are tied, for variety of reasons: 1. Bindings don’t work with properties of properties, because they rely […]
Following some discussion in LJ, I came up with this. http://www.ikriv.com/en/prog/info/irr/. Someday I may translate that into Russian 🙂
WPF bindings and MVVM are nice when they work, but can become a royal pain when they don’t. This is especially annoying when you create bindings in code, because then […]
Since context menu is not part of visual tree, you cannot use things like ElementName in its bindings. However, a context menu, that context menu will inherit DataContext of its […]
A couple of days ago I spent several hours thanks to these two little design quirks. Quirk #1. Deadlock prone protocol design. Our program uses two client-server protocols. Let’s call […]
Time and time again I am burnt by the same bug. There are two kinds of enumerables in .NET: enumerators and generators. Enumerators go over some collection and return its […]
The scenario is: someone opens an SSL connection to the Apache server, authenticates himself, and requests access to another host/port via CONNECT command. This is good for secure connection via […]