Does Asp.net MVC ActionResult implements IDisposable

80 Views Asked by At

Am getting gendarme issues on my MVC 5 Application in all the public methods stating

"A method of an IDisposable type does not throw System.ObjectDisposedException."

As far as i know most of the .net resources(Managed resources) by default implement IDisposable.

Whether the MVC ActionResult doesn't implement IDisposable ? or the gendarme is showing it wrongly ?

More on gendarme issue and similar conversation Thread here

If i apply the solution to all the functions gendarme is happy. So am little confused !!

1

There are 1 best solutions below

0
On

MVC ActionResult is not derived from any class/interface. ActionResult is basically an abstract class.