Permalink
Browse files

== operator

  • Loading branch information...
1 parent d3c4468 commit 016d6a103eefade50e127412cfbf5b82c1e05da7 CodesInChaos committed Mar 22, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 Merkator.Tools/ImmutableBytes.cs
@@ -145,5 +145,14 @@ public string ToHex()
else
return BitConverter.ToString(_data).Replace("-", "");
}
+
+ public static bool operator ==(ImmutableBytes b1, ImmutableBytes b2)
+ {
+ return b1.Equals(b2);
+ }
+ public static bool operator !=(ImmutableBytes b1, ImmutableBytes b2)
+ {
+ return !(b1 == b2);
+ }
}
}

0 comments on commit 016d6a1

Please sign in to comment.