コード例 #1
0
ファイル: InputElement.cs プロジェクト: wpwen/SharpDX
 /// <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);
     }
 }
コード例 #2
0
 /// <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);
     }
 }
コード例 #3
0
ファイル: InputElement.cs プロジェクト: oeoen/SharpDX
 /// <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);
     }
 }
コード例 #4
0
 /// <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);
     }
 }