Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ internal static void ValidateKeyValuePair(string keyword, string value)
}
if ((null != value) && value.Contains('\0'))
{
throw ADP.InvalidValue(keyword);
throw ADP.InvalidValue(value);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, why does this need to change to value? The argument here is the parameter name, right?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am actually considering that it should be nameof(value). It's expecting the parameter name, returning an ArgumentException.

https://source.dot.net/#System.Data.Common/System/Data/Common/AdapterUtil.Common.cs,723f78a5c15d5418,references

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless you mean that the value of keyword should be the parameter name since it's triggered when setting the indexer and it is meant to show this as the source

https://source.dot.net/#System.Data.Common/System/Data/Common/DbConnectionStringBuilder.cs,98

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unless you mean that the value of keyword should be the parameter name since it's triggered when setting the indexer and it is meant to show this as the source

https://source.dot.net/#System.Data.Common/System/Data/Common/DbConnectionStringBuilder.cs,98

Right, I suspect that was the original intent.

}
}
}
Expand Down