Esempio n. 1
0
 public override string ToString()
 {
     return(string.Format("{0}{1},{2},{3}",
                          SemanticName,
                          SemanticIndex == 0 ? string.Empty : SemanticIndex.ToString(CultureInfo.InvariantCulture),
                          Format,
                          AlignedByteOffset));
 }
Esempio n. 2
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();
         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();
         return(hashCode);
     }
 }
Esempio n. 4
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);
     }
 }