CSharp : use the same java code

It seems there no longer an idiomatic requirement so use the same as java code.