From 30fa8a60ed56bca67cc29a29f24edd33af0a7069 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Jun 2025 08:53:58 +0000 Subject: [PATCH 1/2] Initial plan for issue From 2f0c74756b1a7d5e90eeaec66b5352d32e2347c9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Jun 2025 08:57:50 +0000 Subject: [PATCH 2/2] Fix incorrect exception type in DataTableReader.GetOrdinal documentation Co-authored-by: jeffhandley <1031940+jeffhandley@users.noreply.github.com> --- xml/System.Data/DataTableReader.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xml/System.Data/DataTableReader.xml b/xml/System.Data/DataTableReader.xml index 83a940b03c1..d865fd3cf32 100644 --- a/xml/System.Data/DataTableReader.xml +++ b/xml/System.Data/DataTableReader.xml @@ -1498,7 +1498,7 @@ Russ ## Remarks Because most of the methods provided by the class must be provided with an ordinal column number, you can use the `GetOrdinal` method to retrieve the column number, given the name of the column. - `GetOrdinal` performs a case-sensitive lookup first. If it fails, a second case-insensitive search is made. If the column number is not found an `IndexOutOfRangeException` is thrown. + `GetOrdinal` performs a case-sensitive lookup first. If it fails, a second case-insensitive search is made. If the column number is not found an `ArgumentException` is thrown. `GetOrdinal` is kana-width insensitive.