Browse by Tags
All Tags »
Source (
RSS)
My new article, which I've been preparing over the last few months, is now available. It's about memory and resources leaks in .NET . You'll find it in English on MSDN and in French on DotNetGuru.org . It's also available in PDF in English and in French...
Ten years ago, I played with OLE Automation so we can write things such as the following, where Document represents an XML document: String name = Document.Bookstore.Book[1].Author.LastName; Document.Bookstore.Book[1].Author.LastName = "NewName"; The...
Given my own experience, I'd say that events are the main source of leaks in .NET. They deserve double- and even triple-checks. Each time you add a subscription to an event in your code, most likely with +=, you should worry about the consequences and...
After we published the code samples for LINQ in Action's first chapters in LINQPad a few weeks ago, the samples of three more chapters have just been added. These chapters cover LINQ to XML. Thanks Jim for doing the additional conversion. The code samples...
Do you know LINQPad ? It's a really simple but great tool for testing LINQ queries. Not only that, but it can be used to test all kinds of C# and VB code snippets. Another great thing about LINQPad is that it comes with code samples. Until now the integrated...
Several techniques exist for localizing WPF applications. I have yet to study them before making a choice. Here are some resources I've collected: http://wpflocalization.codeplex.com WPF Globalization and Localization Overview (MSDN) http://www.codeproject...
In LINQ in Action , we discuss about the missing ForEach query operator. This is in Chapter 5 "Beyond basic in-memory queries", more precisely in section 5.2.2. There, we indicate that Eric White suggested this operator in his functional programming tutorial...
This is just a quick post to make a plug for the Null Object design pattern. I don't think that it's used a lot, but it's useful to avoid a lot of issues. It's very common to create or use methods and properties that return null . That's not surprising...
I'm currently in Montréal, between two of my sessions . I'd like to take advantage of this break to introduce a little friend of mine: Clippy! Ok, Clippy is probably not new to most of you... Except that this time, it is a brand new Clippy. This new Clippy...
I'm using WPF these days, and so reading and writing a lot of XAML markup. As with any code or text, reading and navigation are made easier with a clean format. In my XAML files, I've been putting the XML attributes aligned vertically, below their XML...
More Posts
Next page »