[CSharpBinding] Fixed some warnings.