Implementing ByIdOrName in .NET support package.

Fixes issue #1175.