Simplify .NET examples for CreateObject (fixes #958)
Merge pull request #959 from sharwell/fix-958

Simplify .NET examples for CreateObject