Browse by Tags
All Tags »
.NET (RSS)
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...
/// <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...
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...
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...
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...
Sample 3 using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Runtime.InteropServices.ComTypes; using System.Text; using System.Threading; using System.Windows.Forms; using Excel = Microsoft.Office.Interop.Excel;
Read More...
Sample 2 using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices.ComTypes; using System.Text; using System.Threading; using System.Windows.Forms; using Excel = Microsoft.Office.Interop.Excel; using Office
Read More...
Sample 1 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; using System.Windows.Forms; using Excel = Microsoft.Office.Interop.Excel; using Office = Microsoft.Office.Core; namespace Sample1 {
Read More...
So, I did a whole lot more research and investigation of COM eventing in Office applications and how this compares to the "general" COM eventing case. Check out IConnectionPoint and .NET or: How I Learned to Stop Worrying and Love Managed Event Sinks
Read More...
Welcome This article was inspired by some work carried out by my friend Misha at http://blogs.msdn.com/mshneer/archive/2008/10/28/better-eventing-support-in-clr-4-0-using-nopia-support.aspx and his PDC talk relating to the upcoming .NET Framework 4.0
Read More...
My first article ( IConnectionPoint and .NET ) is a multi-part discussion contrasting .NET delegate-style event handling with classic COM IConnectionPoint eventing from managed code. Excel is my choice of victim application.
Read More...