Skip to content

Commit

Permalink
Read-only structs
Browse files Browse the repository at this point in the history
  • Loading branch information
LTRData committed Apr 4, 2024
1 parent cc31cce commit ea4f3b2
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Library/DiscUtils.Net/Dns/MessageFlags.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

namespace DiscUtils.Net.Dns;

internal struct MessageFlags
internal readonly struct MessageFlags
{
public MessageFlags(ushort value)
{
Expand Down
2 changes: 1 addition & 1 deletion Library/DiscUtils.Ntfs/DirectoryEntry.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

namespace DiscUtils.Ntfs;

internal struct DirectoryEntry
internal readonly struct DirectoryEntry
{
private readonly Directory _directory;

Expand Down
2 changes: 1 addition & 1 deletion Library/DiscUtils.Ntfs/IndexRoot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public int Compare(byte[] x, byte[] y)
}
}

private struct FileNameComparer : IComparer<byte[]>
private readonly struct FileNameComparer : IComparer<byte[]>
{
private readonly UpperCase _stringComparer;

Expand Down
2 changes: 1 addition & 1 deletion Library/DiscUtils.SquashFs/MetadataRef.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

namespace DiscUtils.SquashFs;

internal struct MetadataRef
internal readonly struct MetadataRef
{
public MetadataRef(long value)
{
Expand Down
2 changes: 1 addition & 1 deletion Library/DiscUtils.Vdi/FileVersion.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

namespace DiscUtils.Vdi;

internal struct FileVersion
internal readonly struct FileVersion
{
public FileVersion(uint value)
{
Expand Down

0 comments on commit ea4f3b2

Please sign in to comment.