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

Method GetHashCode

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

Source from the content-addressed store, hash-verified

150 }
151
152 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
153 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
154 public override int GetHashCode() {
155 int hash = 1;
156 if (Latitude != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Latitude);
157 if (Longitude != 0F) hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Longitude);
158 if (_unknownFields != null) {
159 hash ^= _unknownFields.GetHashCode();
160 }
161 return hash;
162 }
163
164 [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
165 [global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]

Callers

nothing calls this directly

Calls 1

GetHashCodeMethod · 0.45

Tested by

no test coverage detected