Issue #145: Fixed compile errors on generated c# code.