Skip to content

Commit

Permalink
Fix paramter order for ArgumentException
Browse files Browse the repository at this point in the history
  • Loading branch information
Numpsy authored and jeremy-visionaid committed Nov 19, 2024
1 parent e5bc428 commit c1825a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion OpenMcdf/FatStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ public override long Seek(long offset, SeekOrigin origin)
break;

default:
throw new ArgumentException(nameof(origin), "Invalid seek origin");
throw new ArgumentException("Invalid seek origin", nameof(origin));
}

return position;
Expand Down
2 changes: 1 addition & 1 deletion OpenMcdf/MiniFatStream.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public override long Seek(long offset, SeekOrigin origin)
break;

default:
throw new ArgumentException(nameof(origin), "Invalid seek origin.");
throw new ArgumentException("Invalid seek origin.", nameof(origin));
}

return position;
Expand Down

0 comments on commit c1825a1

Please sign in to comment.