Mad Props!

Omniscience is just a Google-search away.

Login

You're reading Mabsterama, the weblog of Matt Hamilton. Enjoy your stay.

Blog

AWDNUG December 2008

Last night’s meeting of the Albury/Wodonga .NET User Group was one of the best we’ve had for a while. Although we still aren’t getting the numbers we’d like (there were seven of us this time around), we got a great presentation from relative-newcomer Nathan on InfoPath. Nathan ran through the basics...

Continue reading →

String Formatting with Named Parameters

Remember a few posts ago when I was suggesting that we should be able to use named parameters in C# 4.0 in the same way that we use the “params” keyword right now? I was thinking that we could declare a method like this: void Foo( params IDictionary < string , object > items); … and then call it...

Continue reading →

Demonstrating MEF

I watched Glenn Block’s demonstration of the Managed Extensibility Framework on dnrTV last night, and came away wondering why the demo didn’t “work”. I’m a big fan of MEF, and I could see what Glenn was doing, but you could tell that Carl didn’t quite grok it. So I started thinking about the things that...

Continue reading →

File Format Plug-Ins with MEF

So last night I implemented the ideas from my last post , in that I turned my ICollectionWriter interface into an ICollectionReaderWriter interface, and derived it from ICollectionReader. So now if you want to create a class that can write a collection to a stream, you’re forced to also implement the...

Continue reading →

The Perils of Write-Only File Formats

So last night I downloaded the new Preview 3 release of MEF and incorporated into Comicster (you can read the posts leading up to this here and here ). Right now I can run Comicster and see “.cmxx” files and “.xml” files in the Open File dialog. if I then close the program and drop a DLL into the “My...

Continue reading →

WPF TextBox SelectAll on Focus

The title of this post is almost pure Google-juice, because this is a trick that I had to relearn on the weekend after a series of unsuccessful searches on the topic. A behaviour in Windows that most of us are fairly accustomed to (whether we realise it or not) is that upon entering a TextBox, the text...

Continue reading →

Mapping CLR Namespaces to XML for XAML

In my work on a WPF version of Comicster , I have a few assemblies that I want to reference from my XAML. For example, the Comicster.Core framework assembly (whose CLR namespace is simply “Comicster”) contains the collection classes such as Title, Issue, Character and Creator. The Comicster.Windows.Core...

Continue reading →

Named Parameters in C# 4.0

For those who haven’t been keeping score of what’s new in the upcoming C# 4.0 release, one of the features that people are quite chuffed about is named parameters. They essentially let you call a method by naming the parameters for which you would like to specify a value, and the ones you...

Continue reading →

AWDNUG November 2008

Last night's meeting of the Albury/Wodonga .NET User Group was almost a write-off. With nobody putting their hand up to present, we had no fixed agenda. With one or two notable exceptions, it has basically fallen on myself, Andrew or Anthony to present every month for the past, I don't know, year's worth...

Continue reading →

LINQ with Reflection Part 2

I've taken the code in my last post to the next level! As you recall, I have two interfaces (ICollectionReader and ICollectionWriter) and I have some code (with a very funky LINQ query) to find all the classes in an assembly that implement one of those interfaces and return me a list of instances of...

Continue reading →