We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fef9c82 commit 994cc36Copy full SHA for 994cc36
docs/fundamentals/code-analysis/quality-rules/ca5372.md
@@ -65,7 +65,10 @@ The type of the first parameter of `XPathDocument` is not `XmlReader`.
65
using System.IO;
66
using System.Xml.XPath;
67
...
68
-var obj = new XPathDocument(stream);
+public void TestMethod(Stream stream)
69
+{
70
+ var obj = new XPathDocument(stream);
71
+}
72
```
73
74
### Solution
@@ -76,6 +79,6 @@ using System.Xml.XPath;
76
79
77
80
public void TestMethod(XmlReader reader)
78
81
{
-var obj = new XPathDocument(reader);
82
+ var obj = new XPathDocument(reader);
83
}
84
0 commit comments