Skip to content

Conversation

vslynko
Copy link
Contributor

@vslynko vslynko commented May 7, 2019

Summary

Remove ArgumentNullException from the list of XmlReader.ReadElementContentAsInt() exceptions, because parameterless methods do not throw argument exceptions.

Original implementation does not look like it can throw this type of exception either.
https://github.com/microsoft/referencesource/blob/aaca53b025f41ab638466b1efe569df314f689ea/System.Xml/System/Xml/Core/XmlReader.cs#L459

Remove `ArgumentNullException` from the list of `XmlReader.ReadElementContentAsInt()` exceptions, because parameterless methods do not throw argument exceptions.
@rpetrusha rpetrusha added the ✨ 1st-time dotnet-api-docs contributor! Indicates PRs from new contributors to the dotnet-api-docs repository label May 8, 2019
@rpetrusha rpetrusha added this to the May 2019 milestone May 8, 2019
Copy link

@rpetrusha rpetrusha left a comment

Choose a reason for hiding this comment

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

Thank you, @vslynko, for contributing to the dotnet/dotnet-api-docs repo and removing this inaccurate exception information. We'll merge your PR now. The change should be live on docs.microsoft.com in the next day or two.

@rpetrusha rpetrusha merged commit 692da4c into dotnet:master May 8, 2019
@vslynko vslynko deleted the patch-1 branch May 8, 2019 19:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ 1st-time dotnet-api-docs contributor! Indicates PRs from new contributors to the dotnet-api-docs repository
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants