summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorDwayne Boone <dwayne@zeroc.com>2009-05-11 13:35:56 -0230
committerDwayne Boone <dwayne@zeroc.com>2009-05-11 13:35:56 -0230
commit628127aff1f53fe798b9071cea819d29f6d99427 (patch)
treed88c62c6a6b68a76d6488957a2c06483f9fe18f0 /cpp
parentBug 3878 - remove some deprecated features (diff)
downloadice-628127aff1f53fe798b9071cea819d29f6d99427.tar.bz2
ice-628127aff1f53fe798b9071cea819d29f6d99427.tar.xz
ice-628127aff1f53fe798b9071cea819d29f6d99427.zip
Bug 1294 - declare generated C# classes as partial
Diffstat (limited to 'cpp')
-rw-r--r--cpp/src/slice2cs/Gen.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/cpp/src/slice2cs/Gen.cpp b/cpp/src/slice2cs/Gen.cpp
index 32cd083c7c1..8c3c87d6621 100644
--- a/cpp/src/slice2cs/Gen.cpp
+++ b/cpp/src/slice2cs/Gen.cpp
@@ -1377,7 +1377,7 @@ Slice::Gen::TypesVisitor::visitClassDefStart(const ClassDefPtr& p)
emitAttributes(p);
if(p->isInterface())
{
- _out << nl << "public interface " << fixId(name) << " : ";
+ _out << nl << "public partial interface " << fixId(name) << " : ";
if(p->isLocal())
{
_out << name << "OperationsNC_";
@@ -1404,7 +1404,7 @@ Slice::Gen::TypesVisitor::visitClassDefStart(const ClassDefPtr& p)
{
_out << "abstract ";
}
- _out << "class " << fixId(name);
+ _out << "partial class " << fixId(name);
bool baseWritten = false;
@@ -1745,7 +1745,7 @@ Slice::Gen::TypesVisitor::visitExceptionStart(const ExceptionPtr& p)
emitDeprecate(p, 0, _out, "type");
emitAttributes(p);
- _out << nl << "public class " << name << " : ";
+ _out << nl << "public partial class " << name << " : ";
if(base)
{
_out << fixId(base->scoped());
@@ -2177,11 +2177,11 @@ Slice::Gen::TypesVisitor::visitStructStart(const StructPtr& p)
emitAttributes(p);
if(isValueType(p))
{
- _out << nl << "public struct " << name;
+ _out << nl << "public partial struct " << name;
}
else
{
- _out << nl << "public class " << name << " : _System.ICloneable";
+ _out << nl << "public partial class " << name << " : _System.ICloneable";
}
_out << sb;