aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestIssues.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/src/ProtocolBuffers.Test/TestProtos/UnittestIssues.cs')
-rw-r--r--csharp/src/ProtocolBuffers.Test/TestProtos/UnittestIssues.cs56
1 files changed, 42 insertions, 14 deletions
diff --git a/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestIssues.cs b/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestIssues.cs
index 124f2de7..0e409c8b 100644
--- a/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestIssues.cs
+++ b/csharp/src/ProtocolBuffers.Test/TestProtos/UnittestIssues.cs
@@ -109,9 +109,13 @@ namespace UnitTest.Issues.TestProtos {
private bool _frozen = false;
public bool IsFrozen { get { return _frozen; } }
- public Issue307() { }
+ public Issue307() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
- public Issue307(Issue307 other) {
+ public Issue307(Issue307 other) : this() {
}
public Issue307 Clone() {
@@ -194,9 +198,13 @@ namespace UnitTest.Issues.TestProtos {
private bool _frozen = false;
public bool IsFrozen { get { return _frozen; } }
- public NestedOnce() { }
+ public NestedOnce() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
- public NestedOnce(NestedOnce other) {
+ public NestedOnce(NestedOnce other) : this() {
}
public NestedOnce Clone() {
@@ -279,9 +287,13 @@ namespace UnitTest.Issues.TestProtos {
private bool _frozen = false;
public bool IsFrozen { get { return _frozen; } }
- public NestedTwice() { }
+ public NestedTwice() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
- public NestedTwice(NestedTwice other) {
+ public NestedTwice(NestedTwice other) : this() {
}
public NestedTwice Clone() {
@@ -373,9 +385,13 @@ namespace UnitTest.Issues.TestProtos {
private bool _frozen = false;
public bool IsFrozen { get { return _frozen; } }
- public NegativeEnumMessage() { }
+ public NegativeEnumMessage() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
- public NegativeEnumMessage(NegativeEnumMessage other) {
+ public NegativeEnumMessage(NegativeEnumMessage other) : this() {
value_ = other.value_;
values_ = other.values_.Clone();
packedValues_ = other.packedValues_.Clone();
@@ -522,9 +538,13 @@ namespace UnitTest.Issues.TestProtos {
private bool _frozen = false;
public bool IsFrozen { get { return _frozen; } }
- public DeprecatedChild() { }
+ public DeprecatedChild() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
- public DeprecatedChild(DeprecatedChild other) {
+ public DeprecatedChild(DeprecatedChild other) : this() {
}
public DeprecatedChild Clone() {
@@ -606,9 +626,13 @@ namespace UnitTest.Issues.TestProtos {
private bool _frozen = false;
public bool IsFrozen { get { return _frozen; } }
- public DeprecatedFieldsMessage() { }
+ public DeprecatedFieldsMessage() {
+ OnConstruction();
+ }
- public DeprecatedFieldsMessage(DeprecatedFieldsMessage other) {
+ partial void OnConstruction();
+
+ public DeprecatedFieldsMessage(DeprecatedFieldsMessage other) : this() {
primitiveValue_ = other.primitiveValue_;
primitiveArray_ = other.primitiveArray_.Clone();
MessageValue = other.messageValue_ != null ? other.MessageValue.Clone() : null;
@@ -842,9 +866,13 @@ namespace UnitTest.Issues.TestProtos {
private bool _frozen = false;
public bool IsFrozen { get { return _frozen; } }
- public ItemField() { }
+ public ItemField() {
+ OnConstruction();
+ }
+
+ partial void OnConstruction();
- public ItemField(ItemField other) {
+ public ItemField(ItemField other) : this() {
item_ = other.item_;
}