NightOwl888 opened a new issue, #665:
URL: https://github.com/apache/lucenenet/issues/665

   The [constructor of `ArgumentOutOfRangeException` that accepts a single 
string 
parameter](https://learn.microsoft.com/en-us/dotnet/api/system.argumentoutofrangeexception.-ctor?view=net-7.0#system-argumentoutofrangeexception-ctor(system-string))
 expects a parameter name, not a message. I have spotted at least 2 cases where 
we are incorrectly passing a message to this parameter. We need to change these 
to call the [constructor that accepts 2 
strings](https://learn.microsoft.com/en-us/dotnet/api/system.argumentoutofrangeexception.-ctor?view=net-7.0#system-argumentoutofrangeexception-ctor(system-string-system-string))
 and pass the name of the argument as the first parameter (using 
`nameof(<argument>)`, or in the case of a property, `nameof(<PropertyName>)`).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@lucenenet.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to