MCPcopy Create free account
hub / github.com/bufbuild/buf-examples / GetHashCode

Method GetHashCode

cli/managed-mode/gen/proto/csharp/Weather.cs:415–427  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

413 }
414
415 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
416 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
417 public override int GetHashCode() {
418 int hash = 1;
419 if (location_ != null) hash ^= Location.GetHashCode();
420 if (Temperature != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Temperature);
421 if (WindSpeed != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(WindSpeed);
422 if (Condition != global::Acme.Weather.V1.Condition.Unknown) hash ^= Condition.GetHashCode();
423 if (_unknownFields != null) {
424 hash ^= _unknownFields.GetHashCode();
425 }
426 return hash;
427 }
428
429 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
430 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]

Callers 1

GetHashCodeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected