diff options
Diffstat (limited to 'cpp/src')
-rwxr-xr-x | cpp/src/slice2cs/Gen.cpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index fee8f38968d..3fdfbfba25f 100755 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -202,28 +202,13 @@ Slice::CsVisitor::writeDispatch(const ClassDefPtr& p) _out << sp << nl << "public override bool ice_isA(string s)"; _out << sb; - _out << nl << "if(IceInternal.AssemblyUtil._runtime == IceInternal.AssemblyUtil.Runtime.Mono)" - " // Bug in Mono 1.0 DefaultInvariant"; - _out << sb; - _out << nl << "return _System.Array.BinarySearch(__ids, s) >= 0;"; - _out << eb; - _out << nl << "else"; - _out << sb; _out << nl << "return _System.Array.BinarySearch(__ids, s, _System.Collections.Comparer.DefaultInvariant) >= 0;"; _out << eb; - _out << eb; _out << sp << nl << "public override bool ice_isA(string s, Ice.Current __current)"; _out << sb; - _out << nl << "if(_System.Type.GetType(\"Mono.Runtime\", false) != null) // Bug in Mono 1.0 DefaultInvariant"; - _out << sb; - _out << nl << "return _System.Array.BinarySearch(__ids, s) >= 0;"; - _out << eb; - _out << nl << "else"; - _out << sb; _out << nl << "return _System.Array.BinarySearch(__ids, s, _System.Collections.Comparer.DefaultInvariant) >= 0;"; _out << eb; - _out << eb; _out << sp << nl << "public override string[] ice_ids()"; _out << sb; @@ -576,15 +561,8 @@ Slice::CsVisitor::writeDispatch(const ClassDefPtr& p) << "__dispatch(IceInternal.Incoming __in, Ice.Current __current)"; _out << sb; _out << nl << "int pos;"; - _out << nl << "if(_System.Type.GetType(\"Mono.Runtime\", false) != null) // Bug in Mono 1.0 DefaultInvariant"; - _out << sb; - _out << nl << "pos = _System.Array.BinarySearch(__all, __current.operation);"; - _out << eb; - _out << nl << "else"; - _out << sb; _out << nl << "pos = _System.Array.BinarySearch(__all, __current.operation, " << "_System.Collections.Comparer.DefaultInvariant);"; - _out << eb; _out << nl << "if(pos < 0)"; _out << sb; _out << nl << "return IceInternal.DispatchStatus.DispatchOperationNotExist;"; |