Here's one that I had never heard of until today when Dustin Campell on the Extensibillity Newsgroup pointed this out to me:

There's a special value System.Type.Missing that can be used when making method calls that contain optional parameters. This of course is tremendously useful for making COM interop calls to COM interfaces that have optional parameters.

This is something I've been struggling with quite a bit lately in my Add-In travails. Much of the documentation for Add-Ins is provided with VB or VB.NET code and much of that code uses either Option Strict Off or VBA both of which allow simply omitting of parameters. C# with managed interfaces allows no such thing, so this value just made my life a lot easier.

Amazing how easy it is to miss something so useful for so long, n'est pas?

 

(原文来源 : http://www.west-wind.com/weblog/posts/2004/Aug/14/SystemTypeMissing)