diff options
author | Mark Spruiell <mes@zeroc.com> | 2017-06-29 15:16:26 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2017-06-29 15:16:26 -0700 |
commit | 21039bbe54e5b3d167a85ada96ae82066835e9c0 (patch) | |
tree | fad3943cd853e2b2918a3b86faa0c22345961036 /cpp/src | |
parent | Fixed formatting (diff) | |
download | ice-21039bbe54e5b3d167a85ada96ae82066835e9c0.tar.bz2 ice-21039bbe54e5b3d167a85ada96ae82066835e9c0.tar.xz ice-21039bbe54e5b3d167a85ada96ae82066835e9c0.zip |
ICE-8192 - missing GeneratedCodeAttribute in C#
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/slice2cs/Gen.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp index 103b12565b1..258afaa6326 100644 --- a/cpp/src/slice2cs/Gen.cpp +++ b/cpp/src/slice2cs/Gen.cpp @@ -2592,7 +2592,9 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p) const bool hasDataMemberInitializers = requiresDataMemberInitializers(dataMembers); if(hasDataMemberInitializers) { - _out << sp << nl << "private void _initDM()"; + _out << sp; + emitGeneratedCodeAttribute(); + _out << nl << "private void _initDM()"; _out << sb; writeDataMemberInitializers(dataMembers, DotNet::Exception); _out << eb; @@ -2633,7 +2635,9 @@ Slice::Gen::TypesVisitor::visitExceptionEnd(const ExceptionPtr& p) { if(!dataMembers.empty()) { - _out << sp << nl << "private void _initDM" << spar << paramDecl << epar; + _out << sp; + emitGeneratedCodeAttribute(); + _out << nl << "private void _initDM" << spar << paramDecl << epar; _out << sb; for(DataMemberList::const_iterator q = dataMembers.begin(); q != dataMembers.end(); ++q) { |