From c1825a15577bbc9b9b2b8bf835c34ae720861f16 Mon Sep 17 00:00:00 2001 From: Richard Webb Date: Mon, 18 Nov 2024 11:56:45 +0000 Subject: [PATCH] Fix paramter order for ArgumentException --- OpenMcdf/FatStream.cs | 2 +- OpenMcdf/MiniFatStream.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenMcdf/FatStream.cs b/OpenMcdf/FatStream.cs index 81c6de15..6254c0b2 100644 --- a/OpenMcdf/FatStream.cs +++ b/OpenMcdf/FatStream.cs @@ -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; diff --git a/OpenMcdf/MiniFatStream.cs b/OpenMcdf/MiniFatStream.cs index ba40a293..21a86ea0 100644 --- a/OpenMcdf/MiniFatStream.cs +++ b/OpenMcdf/MiniFatStream.cs @@ -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;