These samples are originally from http://msdn2.microsoft.com/en-us/vbasic/bb737930.aspx
They are manually translated from VB into C#.
They are also distributed with Visual Studio in C# form, but their license ('All rights reserved')
seems to prevent them from incuding them in this proejct.