Skip to content

Exception message grammar: "An SqlParameter [...] is not contained by this SqlParameterCollection" #159

@jnm2

Description

@jnm2

Repro:

using (var command = new SqlCommand(null, null))
{
    _ = command.Parameters["@foo"];
}

System.IndexOutOfRangeException: An SqlParameter with ParameterName '@​foo' is not contained by this SqlParameterCollection.

Expected: "A SqlParameter," not "An SqlParameter"

Source:

https://github.com/dotnet/corefx/blob/6739eab2f4ee9a895575289893edf63b6c234d43/src/System.Data.SqlClient/src/Resources/Strings.resx#L122-L124

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions