コード例 #1
0
        public override int GetHashCode()
        {
            var hash = 17;

            hash = 37 * hash + Type.GetHashCode();
            hash = 37 * hash + RawValue.GetHashCode();
            return(hash);
        }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (RawValue != null ? RawValue.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Explanation != null ? Explanation.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Type != null ? Type.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = OwnerType?.GetHashCode() ?? 0;
         result = (result * 397) ^ (Property?.GetHashCode() ?? 0);
         result = (result * 397) ^ (RawValue?.GetHashCode() ?? 0);
         result = (result * 397) ^ (Format?.GetHashCode() ?? 0);
         return(result);
     }
 }
コード例 #4
0
 public override int GetHashCode()
 {
     unchecked
     {
         int result = (OwnerType != null ? OwnerType.GetHashCode() : 0);
         result = (result * 397) ^ (Property != null ? Property.GetHashCode() : 0);
         result = (result * 397) ^ (RawValue != null ? RawValue.GetHashCode() : 0);
         result = (result * 397) ^ (Format != null ? Format.GetHashCode() : 0);
         return(result);
     }
 }
コード例 #5
0
ファイル: FixedMath.cs プロジェクト: spando2166/Stick-Fighter
 public override int GetHashCode()
 {
     return(RawValue.GetHashCode());
 }
コード例 #6
0
 public override int GetHashCode() => RawValue.GetHashCode();