aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2015-10-24 06:46:02 +0100
committerJon Skeet <jonskeet@google.com>2015-10-24 06:46:02 +0100
commit55313c9c5d7917d58428d84d193ae3772e4684f8 (patch)
treec3b6e5ed61941b8d165b562d4e4487521c554a8d /csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
parent964627ece023577f252b888c9a9d6d9c2c563fc3 (diff)
downloadprotobuf-55313c9c5d7917d58428d84d193ae3772e4684f8.tar.gz
protobuf-55313c9c5d7917d58428d84d193ae3772e4684f8.tar.bz2
protobuf-55313c9c5d7917d58428d84d193ae3772e4684f8.zip
Generated code for previous commit (oneof case contributing to hash code and equality).
Diffstat (limited to 'csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs')
-rw-r--r--csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
index addec057..38cd5718 100644
--- a/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
+++ b/csharp/src/Google.Protobuf.Test/TestProtos/UnittestIssues.cs
@@ -1260,6 +1260,8 @@ namespace UnitTest.Issues.TestProtos {
if (PlainString != other.PlainString) return false;
if (O2Int32 != other.O2Int32) return false;
if (O2String != other.O2String) return false;
+ if (O1Case != other.O1Case) return false;
+ if (O2Case != other.O2Case) return false;
return true;
}
@@ -1271,6 +1273,8 @@ namespace UnitTest.Issues.TestProtos {
if (PlainString.Length != 0) hash ^= PlainString.GetHashCode();
if (o2Case_ == O2OneofCase.O2Int32) hash ^= O2Int32.GetHashCode();
if (o2Case_ == O2OneofCase.O2String) hash ^= O2String.GetHashCode();
+ hash ^= (int) o1Case_;
+ hash ^= (int) o2Case_;
return hash;
}