Here are the examples of the csharp api long.GetHashCode() taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1319 Examples
19
Source : BssomNumber.cs
with MIT License
from 1996v
with MIT License
from 1996v
public override int GetHashCode()
{
switch (NumberType)
{
case BssomNumberType.Byte:
return GetByte().GetHashCode();
case BssomNumberType.SByte:
return GetSByte().GetHashCode();
case BssomNumberType.Short:
return GetShort().GetHashCode();
case BssomNumberType.Int:
return GetInt().GetHashCode();
case BssomNumberType.Long:
return GetLong().GetHashCode();
case BssomNumberType.UShort:
return GetUShort().GetHashCode();
case BssomNumberType.UInt:
return GetUInt().GetHashCode();
default://case BssomNumberType.ULong:
return GetULong().GetHashCode();
}
}
19
Source : DisplayDataSize.cs
with MIT License
from Accelerider
with MIT License
from Accelerider
public override int GetHashCode() => Value.GetHashCode();
19
Source : FileContainer.cs
with MIT License
from actions
with MIT License
from actions
public override int GetHashCode()
{
return this.Id.GetHashCode();
}
19
Source : StreamExtent.cs
with MIT License
from ADeltaX
with MIT License
from ADeltaX
public override int GetHashCode()
{
return Start.GetHashCode() ^ Length.GetHashCode();
}
19
Source : LineItem.cs
with MIT License
from Adyen
with MIT License
from Adyen
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.AmountExcludingTax != null)
hashCode = hashCode * 59 + this.AmountExcludingTax.GetHashCode();
if (this.AmountIncludingTax != null)
hashCode = hashCode * 59 + this.AmountIncludingTax.GetHashCode();
if (this.Description != null)
hashCode = hashCode * 59 + this.Description.GetHashCode();
if (this.Id != null)
hashCode = hashCode * 59 + this.Id.GetHashCode();
if (this.ImageUrl != null)
hashCode = hashCode * 59 + this.ImageUrl.GetHashCode();
if (this.ProductUrl != null)
hashCode = hashCode * 59 + this.ProductUrl.GetHashCode();
if (this.Quanreplacedy != null)
hashCode = hashCode * 59 + this.Quanreplacedy.GetHashCode();
if (this.TaxAmount != null)
hashCode = hashCode * 59 + this.TaxAmount.GetHashCode();
if (this.TaxCategory != null)
hashCode = hashCode * 59 + this.TaxCategory.GetHashCode();
if (this.TaxPercentage != null)
hashCode = hashCode * 59 + this.TaxPercentage.GetHashCode();
return hashCode;
}
}
19
Source : Amount.cs
with MIT License
from Adyen
with MIT License
from Adyen
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Currency != null)
hashCode = hashCode * 59 + this.Currency.GetHashCode();
if (this.Value != null)
hashCode = hashCode * 59 + this.Value.GetHashCode();
return hashCode;
}
}
19
Source : Amount.cs
with MIT License
from Adyen
with MIT License
from Adyen
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hash = 41;
// Suitable nullity checks etc, of course :)
if (this.Currency != null)
hash = hash * 59 + this.Currency.GetHashCode();
if (this.Value != null)
hash = hash * 59 + this.Value.GetHashCode();
return hash;
}
}
19
Source : RedisLiteHelper.cs
with MIT License
from AElfProject
with MIT License
from AElfProject
public override int GetHashCode()
{
unchecked
{
var hashCode = (Host != null ? Host.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ Port;
hashCode = (hashCode * 397) ^ Ssl.GetHashCode();
hashCode = (hashCode * 397) ^ ConnectTimeout;
hashCode = (hashCode * 397) ^ SendTimeout;
hashCode = (hashCode * 397) ^ ReceiveTimeout;
hashCode = (hashCode * 397) ^ RetryTimeout;
hashCode = (hashCode * 397) ^ IdleTimeOutSecs;
hashCode = (hashCode * 397) ^ Db.GetHashCode();
hashCode = (hashCode * 397) ^ (Client != null ? Client.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (Preplacedword != null ? Preplacedword.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (NamespacePrefix != null ? NamespacePrefix.GetHashCode() : 0);
return hashCode;
}
}
19
Source : ChainHelper.cs
with MIT License
from AElfProject
with MIT License
from AElfProject
public static int GetChainId(long serialNumber)
{
// For 4 base58 chars use following range (2111 ~ zzzz):
// Max: 57*58*58*58+57*58*58+57*58+57 = 11316496 (zzzz)
// Min: 1*58*58*58+0*58*58+0*58+0 = 195112 (2111)
var validNUmber = (uint) serialNumber.GetHashCode() % 11316496;
if (validNUmber < 195112)
validNUmber += 195112;
var validNUmberBytes = validNUmber.ToBytes().Skip(1).ToArray();
// Use BigInteger(BigEndian) format (bytes size = 3)
Array.Resize(ref validNUmberBytes, 4);
return validNUmberBytes.ToInt32(false);
}
19
Source : BigPosition.cs
with The Unlicense
from aeroson
with The Unlicense
from aeroson
public override int GetHashCode()
{
return insideSectorPosition.GetHashCode() ^ sectorX.GetHashCode() ^ sectorY.GetHashCode() ^ sectorZ.GetHashCode();
}
19
Source : Range.cs
with GNU General Public License v2.0
from afrantzis
with GNU General Public License v2.0
from afrantzis
public override int GetHashCode()
{
return (start.GetHashCode() ^ end.GetHashCode());
}
19
Source : ProducerRecord.cs
with Apache License 2.0
from akkadotnet
with Apache License 2.0
from akkadotnet
public override int GetHashCode()
{
unchecked
{
var hashCode = (Topic != null ? Topic.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ Parreplacedion.GetHashCode();
hashCode = (hashCode * 397) ^ Timestamp.GetHashCode();
hashCode = (hashCode * 397) ^ (Message != null ? Message.GetHashCode() : 0);
return hashCode;
}
}
19
Source : RawBuffer.cs
with MIT License
from Alan-FGR
with MIT License
from Alan-FGR
public override unsafe int GetHashCode()
{
if (IntPtr.Size == 4)
{
var temp = Memory;
return *((int*)&temp);
}
else
{
var temp = Memory;
return (*((long*)&temp)).GetHashCode();
}
}
19
Source : SnapshotRule.cs
with MIT License
from alexis-
with MIT License
from alexis-
public override int GetHashCode()
{
return Id.GetHashCode();
}
19
Source : BEncodedNumber.cs
with MIT License
from aljazsim
with MIT License
from aljazsim
public override int GetHashCode()
{
return this.number.GetHashCode();
}
19
Source : GPGKey.cs
with BSD 3-Clause "New" or "Revised" License
from Altinn
with BSD 3-Clause "New" or "Revised" License
from Altinn
public override int GetHashCode()
{
// Overflow is fine, just wrap
unchecked
{
int hashCode = 41;
if (this.CanCertify != null)
{
hashCode = (hashCode * 59) + this.CanCertify.GetHashCode();
}
if (this.CanEncryptComms != null)
{
hashCode = (hashCode * 59) + this.CanEncryptComms.GetHashCode();
}
if (this.CanEncryptStorage != null)
{
hashCode = (hashCode * 59) + this.CanEncryptStorage.GetHashCode();
}
if (this.CanSign != null)
{
hashCode = (hashCode * 59) + this.CanSign.GetHashCode();
}
if (this.CreatedAt != null)
{
hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode();
}
if (this.Emails != null)
{
hashCode = (hashCode * 59) + this.Emails.GetHashCode();
}
if (this.ExpiresAt != null)
{
hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode();
}
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
if (this.KeyId != null)
{
hashCode = (hashCode * 59) + this.KeyId.GetHashCode();
}
if (this.PrimaryKeyId != null)
{
hashCode = (hashCode * 59) + this.PrimaryKeyId.GetHashCode();
}
if (this.PublicKey != null)
{
hashCode = (hashCode * 59) + this.PublicKey.GetHashCode();
}
if (this.Subkeys != null)
{
hashCode = (hashCode * 59) + this.Subkeys.GetHashCode();
}
return hashCode;
}
}
19
Source : PublicKey.cs
with BSD 3-Clause "New" or "Revised" License
from Altinn
with BSD 3-Clause "New" or "Revised" License
from Altinn
public override int GetHashCode()
{
// Overflow is fine, just wrap
unchecked
{
int hashCode = 41;
if (this.CreatedAt != null)
{
hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode();
}
if (this.Fingerprint != null)
{
hashCode = (hashCode * 59) + this.Fingerprint.GetHashCode();
}
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
if (this.Key != null)
{
hashCode = (hashCode * 59) + this.Key.GetHashCode();
}
if (this.replacedle != null)
{
hashCode = (hashCode * 59) + this.replacedle.GetHashCode();
}
if (this.Url != null)
{
hashCode = (hashCode * 59) + this.Url.GetHashCode();
}
return hashCode;
}
}
19
Source : Repository.cs
with BSD 3-Clause "New" or "Revised" License
from Altinn
with BSD 3-Clause "New" or "Revised" License
from Altinn
public override int GetHashCode()
{
// Overflow is fine, just wrap
unchecked
{
int hashCode = 41;
if (this.CloneUrl != null)
{
hashCode = (hashCode * 59) + this.CloneUrl.GetHashCode();
}
if (this.CreatedAt != null)
{
hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode();
}
if (this.DefaultBranch != null)
{
hashCode = (hashCode * 59) + this.DefaultBranch.GetHashCode();
}
if (this.Description != null)
{
hashCode = (hashCode * 59) + this.Description.GetHashCode();
}
if (this.Empty != null)
{
hashCode = (hashCode * 59) + this.Empty.GetHashCode();
}
if (this.Fork != null)
{
hashCode = (hashCode * 59) + this.Fork.GetHashCode();
}
if (this.ForksCount != null)
{
hashCode = (hashCode * 59) + this.ForksCount.GetHashCode();
}
if (this.FullName != null)
{
hashCode = (hashCode * 59) + this.FullName.GetHashCode();
}
if (this.HtmlUrl != null)
{
hashCode = (hashCode * 59) + this.HtmlUrl.GetHashCode();
}
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
if (this.Mirror != null)
{
hashCode = (hashCode * 59) + this.Mirror.GetHashCode();
}
if (this.Name != null)
{
hashCode = (hashCode * 59) + this.Name.GetHashCode();
}
if (this.OreplacedsuesCount != null)
{
hashCode = (hashCode * 59) + this.OreplacedsuesCount.GetHashCode();
}
if (this.Owner != null)
{
hashCode = (hashCode * 59) + this.Owner.GetHashCode();
}
if (this.Parent != null)
{
hashCode = (hashCode * 59) + this.Parent.GetHashCode();
}
if (this.Permissions != null)
{
hashCode = (hashCode * 59) + this.Permissions.GetHashCode();
}
if (this.IsPrivate != null)
{
hashCode = (hashCode * 59) + this.IsPrivate.GetHashCode();
}
if (this.Size != null)
{
hashCode = (hashCode * 59) + this.Size.GetHashCode();
}
if (this.SshUrl != null)
{
hashCode = (hashCode * 59) + this.SshUrl.GetHashCode();
}
if (this.StarsCount != null)
{
hashCode = (hashCode * 59) + this.StarsCount.GetHashCode();
}
if (this.UpdatedAt != null)
{
hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode();
}
if (this.WatchersCount != null)
{
hashCode = (hashCode * 59) + this.WatchersCount.GetHashCode();
}
if (this.Website != null)
{
hashCode = (hashCode * 59) + this.Website.GetHashCode();
}
return hashCode;
}
}
19
Source : TrackedTime.cs
with BSD 3-Clause "New" or "Revised" License
from Altinn
with BSD 3-Clause "New" or "Revised" License
from Altinn
public override int GetHashCode()
{
// Overflow is fine, just wrap
unchecked
{
int hashCode = 41;
if (this.Created != null)
{
hashCode = (hashCode * 59) + this.Created.GetHashCode();
}
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
if (this.IssueId != null)
{
hashCode = (hashCode * 59) + this.IssueId.GetHashCode();
}
if (this.Time != null)
{
hashCode = (hashCode * 59) + this.Time.GetHashCode();
}
if (this.UserId != null)
{
hashCode = (hashCode * 59) + this.UserId.GetHashCode();
}
return hashCode;
}
}
19
Source : User.cs
with BSD 3-Clause "New" or "Revised" License
from Altinn
with BSD 3-Clause "New" or "Revised" License
from Altinn
public override int GetHashCode()
{
// Overflow is fine, just wrap
unchecked
{
int hashCode = 41;
if (this.AvatarUrl != null)
{
hashCode = (hashCode * 59) + this.AvatarUrl.GetHashCode();
}
if (this.Email != null)
{
hashCode = (hashCode * 59) + this.Email.GetHashCode();
}
if (this.FullName != null)
{
hashCode = (hashCode * 59) + this.FullName.GetHashCode();
}
if (this.Id != null)
{
hashCode = (hashCode * 59) + this.Id.GetHashCode();
}
if (this.Login != null)
{
hashCode = (hashCode * 59) + this.Login.GetHashCode();
}
return hashCode;
}
}
19
Source : TimeUnit.cs
with MIT License
from AndreyAkinshin
with MIT License
from AndreyAkinshin
public override int GetHashCode()
{
unchecked
{
int hashCode = (Name != null ? Name.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ NanosecondAmount.GetHashCode();
return hashCode;
}
}
19
Source : NmsConsumerId.cs
with Apache License 2.0
from apache
with Apache License 2.0
from apache
public override int GetHashCode()
{
unchecked
{
return (Value.GetHashCode() * 397) ^ (SessionId != null ? SessionId.GetHashCode() : 0);
}
}
19
Source : NmsSessionId.cs
with Apache License 2.0
from apache
with Apache License 2.0
from apache
public override int GetHashCode()
{
unchecked
{
return ((ConnectionId != null ? ConnectionId.GetHashCode() : 0) * 397) ^ Value.GetHashCode();
}
}
19
Source : LongArgumentType.cs
with MIT License
from AtomicBlom
with MIT License
from AtomicBlom
public override int GetHashCode()
{
return 31 * Minimum.GetHashCode() + Maximum.GetHashCode();
}
19
Source : BucketsItems.cs
with Apache License 2.0
from Autodesk-Forge
with Apache License 2.0
from Autodesk-Forge
public override int GetHashCode()
{
// credit: http://stackoverflow.com/a/263416/677735
unchecked // Overflow is fine, just wrap
{
int hash = 41;
// Suitable nullity checks etc, of course :)
if (this.BucketKey != null)
hash = hash * 59 + this.BucketKey.GetHashCode();
if (this.CreatedDate != null)
hash = hash * 59 + this.CreatedDate.GetHashCode();
if (this.PolicyKey != null)
hash = hash * 59 + this.PolicyKey.GetHashCode();
return hash;
}
}
19
Source : OAuthError.cs
with Apache License 2.0
from Autodesk-Forge
with Apache License 2.0
from Autodesk-Forge
public override int GetHashCode()
{
// credit: http://stackoverflow.com/a/263416/677735
unchecked // Overflow is fine, just wrap
{
int hash = 41;
// Suitable nullity checks etc, of course :)
if (this.ErrorMessage != null)
hash = hash * 59 + this.ErrorMessage.GetHashCode();
if (this.ErrorCode != null)
hash = hash * 59 + this.ErrorCode.GetHashCode();
if (this.ErrorResponse != null)
hash = hash * 59 + this.ErrorResponse.GetHashCode();
return hash;
}
}
19
Source : PostObjectSigned.cs
with Apache License 2.0
from Autodesk-Forge
with Apache License 2.0
from Autodesk-Forge
public override int GetHashCode()
{
// credit: http://stackoverflow.com/a/263416/677735
unchecked // Overflow is fine, just wrap
{
int hash = 41;
// Suitable nullity checks etc, of course :)
if (this.SignedUrl != null)
hash = hash * 59 + this.SignedUrl.GetHashCode();
if (this.Expiration != null)
hash = hash * 59 + this.Expiration.GetHashCode();
return hash;
}
}
19
Source : VersionAttributes.cs
with Apache License 2.0
from Autodesk-Forge
with Apache License 2.0
from Autodesk-Forge
public override int GetHashCode()
{
// credit: http://stackoverflow.com/a/263416/677735
unchecked // Overflow is fine, just wrap
{
int hash = 41;
// Suitable nullity checks etc, of course :)
if (this.Name != null)
hash = hash * 59 + this.Name.GetHashCode();
if (this.DisplayName != null)
hash = hash * 59 + this.DisplayName.GetHashCode();
if (this.VersionNumber != null)
hash = hash * 59 + this.VersionNumber.GetHashCode();
if (this.MimeType != null)
hash = hash * 59 + this.MimeType.GetHashCode();
if (this.FileType != null)
hash = hash * 59 + this.FileType.GetHashCode();
if (this.StorageSize != null)
hash = hash * 59 + this.StorageSize.GetHashCode();
if (this.Extension != null)
hash = hash * 59 + this.Extension.GetHashCode();
return hash;
}
}
19
Source : File.cs
with MIT License
from Autodesk-Forge
with MIT License
from Autodesk-Forge
public override int GetHashCode()
{
unchecked
{
int hash = 17;
if (Id != null)
hash = hash * 486187739 + Id.GetHashCode();
if (FileGuid != null)
hash = hash * 486187739 + FileGuid.GetHashCode();
if (FileName != null)
hash = hash * 486187739 + FileName.GetHashCode();
if (FileUrn != null)
hash = hash * 486187739 + FileUrn.GetHashCode();
if (FilePath != null)
hash = hash * 486187739 + FilePath.GetHashCode();
if (FileType != null)
hash = hash * 486187739 + FileType.GetHashCode();
if (FileVersion != null)
hash = hash * 486187739 + FileVersion.GetHashCode();
hash = hash * 486187739 + PublishedViewsCount.GetHashCode();
hash = hash * 486187739 + PublishedSheetsCount.GetHashCode();
hash = hash * 486187739 + FileSize.GetHashCode();
if (FileModifiedDate != null)
hash = hash * 486187739 + FileModifiedDate.GetHashCode();
if (UserCreate != null)
hash = hash * 486187739 + UserCreate.GetHashCode();
if (UserLastModified != null)
hash = hash * 486187739 + UserLastModified.GetHashCode();
return hash;
}
}
19
Source : NormalSolver.cs
with MIT License
from AximoGames
with MIT License
from AximoGames
public override int GetHashCode()
{
long rv = FNV32Init;
rv ^= _x;
rv *= FNV32Prime;
rv ^= _y;
rv *= FNV32Prime;
rv ^= _z;
rv *= FNV32Prime;
return rv.GetHashCode();
}
19
Source : DataStoreKeys.cs
with MIT License
from azist
with MIT License
from azist
public override int GetHashCode() => Counter.GetHashCode();
19
Source : IndexingPrimitives.cs
with MIT License
from azist
with MIT License
from azist
public override int GetHashCode() => Value.GetHashCode() ^ Bookmark.GetHashCode();
19
Source : IVolume.cs
with MIT License
from azist
with MIT License
from azist
public override int GetHashCode() => this.PageId.GetHashCode();
19
Source : KeyStructs.cs
with MIT License
from azist
with MIT License
from azist
public override int GetHashCode()
{
return GDID1.GetHashCode() ^ GDID2.GetHashCode() ^ ISO ^ PAYLOAD.GetHashCode();
}
19
Source : Distance.cs
with MIT License
from azist
with MIT License
from azist
public override int GetHashCode() => ValueInMicrons.GetHashCode();
19
Source : Compression.cs
with BSD 3-Clause "New" or "Revised" License
from b4rtik
with BSD 3-Clause "New" or "Revised" License
from b4rtik
public override int GetHashCode()
{
return Position.GetHashCode() ^ Length.GetHashCode() ^ Offset.GetHashCode();
}
19
Source : ByteSize.cs
with MIT License
from Berrysoft
with MIT License
from Berrysoft
public override int GetHashCode() => Bytes.GetHashCode();
19
Source : LimitRule.cs
with MIT License
from bitbrute
with MIT License
from bitbrute
public override int GetHashCode()
=> UploadRate.GetHashCode() ^ UploadBurst.GetHashCode() ^ DownloadRate.GetHashCode() ^ DownloadBurst.GetHashCode();
19
Source : Duration.cs
with MIT License
from bluexo
with MIT License
from bluexo
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Seconds != 0L) hash ^= Seconds.GetHashCode();
if (Nanos != 0) hash ^= Nanos.GetHashCode();
return hash;
}
19
Source : Wrappers.cs
with MIT License
from bluexo
with MIT License
from bluexo
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Value != 0L) hash ^= Value.GetHashCode();
return hash;
}
19
Source : LightMoney.cs
with MIT License
from btcpayserver
with MIT License
from btcpayserver
public override int GetHashCode()
{
return _MilliSatoshis.GetHashCode();
}
19
Source : ActivatedJob.cs
with Apache License 2.0
from camunda-community-hub
with Apache License 2.0
from camunda-community-hub
public override int GetHashCode()
{
unchecked
{
var hashCode = Key.GetHashCode();
hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ ProcessInstanceKey.GetHashCode();
hashCode = (hashCode * 397) ^ (BpmnProcessId != null ? BpmnProcessId.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ ProcessDefinitionVersion;
hashCode = (hashCode * 397) ^ ProcessDefinitionKey.GetHashCode();
hashCode = (hashCode * 397) ^ (ElementId != null ? ElementId.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ ElementInstanceKey.GetHashCode();
hashCode = (hashCode * 397) ^ (Worker != null ? Worker.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ Retries;
hashCode = (hashCode * 397) ^ Deadline.GetHashCode();
hashCode = (hashCode * 397) ^ (Variables != null ? Variables.GetHashCode() : 0);
hashCode = (hashCode * 397) ^ (CustomHeaders != null ? CustomHeaders.GetHashCode() : 0);
return hashCode;
}
}
19
Source : ObscuredLong.cs
with GNU General Public License v3.0
from cc004
with GNU General Public License v3.0
from cc004
public override int GetHashCode() => this.InternalDecrypt().GetHashCode();
19
Source : AssetID.cs
with GNU General Public License v3.0
from cc004
with GNU General Public License v3.0
from cc004
public override int GetHashCode()
{
int hash = 17;
hash = hash * 23 + fileName.GetHashCode();
hash = hash * 23 + pathID.GetHashCode();
return hash;
}
19
Source : ScriptFileId.cs
with MIT License
from cdiggins
with MIT License
from cdiggins
public override int GetHashCode()
{
unchecked
{
int hash = 17;
hash = hash * 31 + Length.GetHashCode();
hash = hash * 31 + LastWriteTime.GetHashCode();
hash = hash * 31 + Path.GetHashCode();
return hash;
}
}
19
Source : PreciseTimeSpan.cs
with Apache License 2.0
from cdy816
with Apache License 2.0
from cdy816
public override int GetHashCode() => this.ticks.GetHashCode();
19
Source : TagHeadOffsetManager.cs
with Apache License 2.0
from cdy816
with Apache License 2.0
from cdy816
public override int GetHashCode()
{
return Sum.GetHashCode()+Count.GetHashCode();
}
19
Source : ScriptableObjectProvider.cs
with MIT License
from CefNet
with MIT License
from CefNet
public override int GetHashCode()
{
return _frameId.GetHashCode();
}
19
Source : TraceConfig.g.cs
with Apache License 2.0
from census-instrumentation
with Apache License 2.0
from census-instrumentation
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (samplerCase_ == SamplerOneofCase.ProbabilitySampler) hash ^= ProbabilitySampler.GetHashCode();
if (samplerCase_ == SamplerOneofCase.ConstantSampler) hash ^= ConstantSampler.GetHashCode();
if (samplerCase_ == SamplerOneofCase.RateLimitingSampler) hash ^= RateLimitingSampler.GetHashCode();
if (MaxNumberOfAttributes != 0L) hash ^= MaxNumberOfAttributes.GetHashCode();
if (MaxNumberOfAnnotations != 0L) hash ^= MaxNumberOfAnnotations.GetHashCode();
if (MaxNumberOfMessageEvents != 0L) hash ^= MaxNumberOfMessageEvents.GetHashCode();
if (MaxNumberOfLinks != 0L) hash ^= MaxNumberOfLinks.GetHashCode();
hash ^= (int) samplerCase_;
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
19
Source : TraceConfig.g.cs
with Apache License 2.0
from census-instrumentation
with Apache License 2.0
from census-instrumentation
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
public override int GetHashCode() {
int hash = 1;
if (Qps != 0L) hash ^= Qps.GetHashCode();
if (_unknownFields != null) {
hash ^= _unknownFields.GetHashCode();
}
return hash;
}
See More Examples