Skip to content

Commit 2f2bf65

Browse files
committed
Make RoutingKey a readonly struct
1 parent bad9dc7 commit 2f2bf65

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
@@ -6,9 +6,9 @@ namespace NetMQ
66
/// Structure to represent a routing key from Router, Peer and Stream sockets.
77
/// Implement Equals and GetHashCode and can be used as key for a Dictionary.
88
/// </summary>
9-
public struct RoutingKey: IEquatable<RoutingKey>, IEquatable<byte[]>
9+
public readonly struct RoutingKey : IEquatable<RoutingKey>, IEquatable<byte[]>
1010
{
11-
private byte[] bytes;
11+
private readonly byte[] bytes;
1212

1313
private const uint C1 = 0xcc9e2d51;
1414
private const uint C2 = 0x1b873593;

0 commit comments

Comments
 (0)