diff options
Diffstat (limited to 'cpp/src/slice2cs/Gen.cpp')
-rw-r--r-- | cpp/src/slice2cs/Gen.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index 8c3c87d6621..9a095595d34 100644 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -4877,7 +4877,8 @@ Slice::Gen::TieVisitor::visitClassDefStart(const ClassDefPtr& p) _out << nl << "_ice_delegate = (" << name << opIntfName << "_)del;"; _out << eb; - _out << sp << nl << "public "; + _out << sp << nl <<"[Obsolete(\"This method is deprecated, use GetHashCode instead.\")]"; + _out << nl << "public "; if(!p->isInterface() || !p->isLocal()) { _out << "override "; |