Exemplo n.º 1
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = SemanticName.GetHashCode();
         result = (result * 397) ^ SemanticIndex.GetHashCode();
         result = (result * 397) ^ Format.GetHashCode();
         result = (result * 397) ^ Slot.GetHashCode();
         result = (result * 397) ^ AlignedByteOffset.GetHashCode();
         result = (result * 397) ^ Classification.GetHashCode();
         result = (result * 397) ^ InstanceDataStepRate.GetHashCode();
         return(result);
     }
 }
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = SemanticName?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ SemanticIndex.GetHashCode();
         hashCode = (hashCode * 397) ^ Format.GetHashCode();
         hashCode = (hashCode * 397) ^ Slot.GetHashCode();
         hashCode = (hashCode * 397) ^ AlignedByteOffset.GetHashCode();
         hashCode = (hashCode * 397) ^ Classification.GetHashCode();
         hashCode = (hashCode * 397) ^ InstanceDataStepRate.GetHashCode();
         return(hashCode);
     }
 }