[CSharpBinding] Fixed DefineSymbols add/remove/contains logic

Fixes bug #11676