Copied dotnet code from CosmosDB repository

This commit is contained in:
David Noble
2019-08-20 11:58:29 -07:00
parent b0e89b0dda
commit 31f3bc828b
201 changed files with 37803 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
// ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// ------------------------------------------------------------
#pragma warning disable SA1401 // Fields should be private
namespace Microsoft.Azure.Cosmos.Serialization.HybridRow.Tests.Unit.CustomerSchema
{
internal sealed class PostalCode
{
public int Zip;
public short? Plus4;
public override bool Equals(object obj)
{
if (object.ReferenceEquals(null, obj))
{
return false;
}
if (object.ReferenceEquals(this, obj))
{
return true;
}
return obj is PostalCode && this.Equals((PostalCode)obj);
}
public override int GetHashCode()
{
unchecked
{
return (this.Zip * 397) ^ this.Plus4.GetHashCode();
}
}
private bool Equals(PostalCode other)
{
return this.Zip == other.Zip && this.Plus4 == other.Plus4;
}
}
}