Welcome to MSDN Blogs Sign in | Join | Help

Richard Cook

How VSTO will change your life (for the better, that is)

Browse by Tags

All Tags » C#   (RSS)
Multimethods in C# revisited
So I thought long and hard about my initial stab at a multimethod implementation for C#. It was a reasonable proof of concept. However, I read some more on the subject of multiple dispatch and the visitor pattern and came up with a few additional ideas. Read More...
Multimethods in C# revisited - MultimethodFactory.cs
/// <summary> /// Generates multimethods corresponding to the specified method signature. /// </summary> /// <typeparam name="T"> Type of delegate specifying method signature </typeparam> public sealed class MultimethodFactory Read More...
Multiple dispatch in C# - MultimethodFactory class
using System; using System.Collections.Generic; using System.Diagnostics; using System.Reflection; internal abstract class MultimethodFactory { private enum ParameterKind { In, Out, Ref } private sealed class Dispatcher { private readonly Delegate _function; Read More...
Multimethods in C#
I read a couple of interesting articles on the subject of multiple dispatch last night. The first, entitled Visitor Pattern Considered Useless , starts by describing the visitor design pattern with particular emphasis on how it can enable the definition Read More...
Dump out all installed products and components
Windows Installer APIs tamed in managed code: use this to dump out a list of all installed product codes and component IDs. Quick and easy. Good night everybody! Read More...
Page view tracker