Skip to content
Merged
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
7 changes: 5 additions & 2 deletions docs/fundamentals/code-analysis/quality-rules/ca5372.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ The type of the first parameter of `XPathDocument` is not `XmlReader`.
using System.IO;
using System.Xml.XPath;
...
var obj = new XPathDocument(stream);
public void TestMethod(Stream stream)
{
var obj = new XPathDocument(stream);
}
```

### Solution
Expand All @@ -76,6 +79,6 @@ using System.Xml.XPath;
...
public void TestMethod(XmlReader reader)
{
var obj = new XPathDocument(reader);
var obj = new XPathDocument(reader);
}
```
Loading