summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp')
-rwxr-xr-xcpp/src/slice2cs/Gen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp
index abfe1de6d59..64565233035 100755
--- a/cpp/src/slice2cs/Gen.cpp
+++ b/cpp/src/slice2cs/Gen.cpp
@@ -196,7 +196,8 @@ Slice::CsVisitor::writeDispatch(const ClassDefPtr& p)
_out << sp << nl << "public override bool ice_isA(string s)";
_out << sb;
- _out << nl << "if(_System.Type.GetType(\"Mono.Runtime\", false) != null) // Bug in Mono 1.0 DefaultInvariant";
+ _out << nl << "if(IceInternal.AssemblyUtil._runtime == IceInternal.Runtime.Mono)"
+ " // Bug in Mono 1.0 DefaultInvariant";
_out << sb;
_out << nl << "return _System.Array.BinarySearch(__ids, s) >= 0;";
_out << eb;