コード例 #1
0
 public override Int32 GetHashCode()
 {
     unchecked
     {
         return((397 * _units.GetHashCode()) ^ (_asset?.GetHashCode() ?? 0));
     }
 }
コード例 #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Network != null ? Network.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Asset != null ? Asset.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Address != null ? Address.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Tag != null ? Tag.GetHashCode() : 0);
         return(hashCode);
     }
 }
コード例 #3
0
ファイル: AssetInfo.cs プロジェクト: treverson/prime
 public override int GetHashCode()
 {
     return(Asset != null ? Asset.GetHashCode() : 0);
 }