Skip to content

Conversation

sebastienros
Copy link
Member

No description provided.

@ghost ghost assigned sebastienros Feb 22, 2024
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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs-area-label An area label is needed to ensure this gets routed to the appropriate area owners
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants