Skip to content

Commit

Permalink
Make RoutingKey a readonly struct
Browse files Browse the repository at this point in the history
  • Loading branch information
drewnoakes committed May 21, 2020
1 parent bad9dc7 commit 2f2bf65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/NetMQ/RoutingKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ namespace NetMQ
/// Structure to represent a routing key from Router, Peer and Stream sockets.
/// Implement Equals and GetHashCode and can be used as key for a Dictionary.
/// </summary>
public struct RoutingKey: IEquatable<RoutingKey>, IEquatable<byte[]>
public readonly struct RoutingKey : IEquatable<RoutingKey>, IEquatable<byte[]>
{
private byte[] bytes;
private readonly byte[] bytes;

private const uint C1 = 0xcc9e2d51;
private const uint C2 = 0x1b873593;
Expand Down

0 comments on commit 2f2bf65

Please sign in to comment.