Web Method Returning XmlDocument/IXPathNavigable and FxCop

  • Thread starter Thread starter JimLad
  • Start date Start date
J

JimLad

Hi,

FXCop is telling me I should be returning IXPathNavigable instead of
XMLDocument from my Web Method, but when I try to do it it says it
can't serialize the IXPathNavigable. Anyone know what the trick here
or is FxCop just wrong?

Cheers,

James
 
Without seeing the code, I could not tell you. I can say, however, that
there are times where I completely ignore FXCop. :-)

--
Gregory A. Beamer
MVP: MCP: +I, SE, SD, DBA

Blog:
http://feeds.feedburner.com/GregoryBeamer

********************************************
| Think Outside the Box! |
********************************************
 
Cheers Gregory.

That was my conclusion too. Given that the web method just gets
serialised, there's no difference between an interface and an object
in this case. FXCop is just showing it's limitations...

Many thanks,

James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top