diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index 78d234d..37b695e 100755 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -2054,7 +2054,8 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p) _out << sb; for(q = dataMembers.begin(); q != dataMembers.end(); ++q) { - _out << nl << "this." << fixId((*q)->name()) << " = " << fixId((*q)->name()) << ';'; + string name = fixId((*q)->name(), DotNet::ApplicationException, false); + _out << nl << "this." << name << " = " << fixId((*q)->name()) << ';'; } _out << eb; }