Simplify .NET examples for CreateObject

Requires review by @DonSchenck prior to merging.

Fixes #958