String.Format() on XAML for WPF

Just found out some nice tricks on WPF, so here are some quick hints about using String.Format() with multiple parameters on XAML for WPF (and possibly Silverlight). Say that you have a Phone class that contains three properties: CountryCode, AreaCode and Number. The DataContext for your Window contains a property of type Phone, and you want […]

Read More

The philosophy of technical restrictions: why value comparison is not available in .NET?

Or: Unavailability of value comparison of objects in .NET, a technical or philosophical restriction? I was working on unit tests and then a question came to me – why comparing objects by value is not provided out-of-the-box by the .NET Framework? We all (should) know that by default, comparing objects leads to a reference comparison, […]

Read More