Service Locator in Code?

Posted on November 28, 2007

Phil Haack posed a question today about dependency injection frameworks: Normally, I would just specify a type to instantiate as another PluginFamily entry. But what I really want to happen in this case is for StructureMap to call a method or delegate and use the value returned as the constructor argument. ... Does anyone know if something like this is possible with any of the Dependency Injection frameworks out there? Whether via code or ...

Read More


ObjectListView Update (1.0.0.11): Find, Select, & Property Paths

Posted on May 6, 2007

Note: You can download the complete implementation here. I just posted a new version of ObjectListView that fixes a couple of bugs and adds some minor usability enhancements. I've been using ObjectListView more in different projects, and I'm feeling the pain points.  Foremost, a complete IBindingListView implementation means that interaction with Windows Forms controls works smoothly, but that doesn't mean it's easy for the developer to ...

Read More


Serialization Problems and Solutions

Posted on April 8, 2007

.NET serialization is a very simple concept, yet often fails to work the way we'd expect. The basic idea is that you're converting objects from their in-memory format to some other form, and then back again. Today I'll walk through some common scenarios that you might encounter when serializing objects to a file with the BinaryFormatter. The complete set of code examples is provided for download here. The Serializable Attribute In order to ...

Read More


ObjectListView Update (1.0.0.9): Debugger Visualizer

Posted on March 11, 2007

Note: You can download the complete implementation here. For those of you just tuning in, ObjectListView is my answer to the .NET need for a DataView-like construct for ordinary objects. With ObjectListView, you can have a sorted and filtered view of any IList or IList. You can bind this view to controls like the DataGridView. This new version adds a debugger visualizer and includes a few other small enhancements and bug fixes. Bug ...

Read More


What’s Interesting?

Posted on February 26, 2007

What would you like to know about data binding, DataGridView, or other .NET goodness? Also, is there any interest in a version of ObjectListView for WPF?

Read More