Skip to content

Commit 4c7b847

Browse files
authored
Merge pull request #879 from drewnoakes/make-routing-key-readonly
Make RoutingKey a readonly struct
2 parents 7deeff0 + 2f2bf65 commit 4c7b847

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/NetMQ/RoutingKey.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ namespace NetMQ
88
/// Structure to represent a routing key from Router, Peer and Stream sockets.
99
/// Implement Equals and GetHashCode and can be used as key for a Dictionary.
1010
/// </summary>
11-
public struct RoutingKey: IEquatable<RoutingKey>, IEquatable<byte[]>
11+
public readonly struct RoutingKey : IEquatable<RoutingKey>, IEquatable<byte[]>
1212
{
13-
private byte[] bytes;
13+
private readonly byte[] bytes;
1414

1515
private const uint C1 = 0xcc9e2d51;
1616
private const uint C2 = 0x1b873593;

0 commit comments

Comments
 (0)