Error Dispose(bool)': no suitable method found to override C#

I have already changed the namespace, the class is with the same name, but the same error remains. I don't know what to change anymore

I have checked in other forums and even here, but everything correct with the class name namespace is the same way.

He caused me other mistakes than that, but this one I believe is the main one that is causing others to occur.

Severity Code Description Project File Line Suppression State Error CS0115 'issuers.Dispose (bool)': no suitable method found to override Severity Code Description Project File Line Deletion State Error CS0115 ' issuers.Dispose (bool)': no suitable method found to override

Author: Maniero, 2019-10-01

1 answers

When you give a override it means that this implementation will replace an existing one of the same method (same signature ) that comes from the class or interface that this class is inheriting. But in his code the class is not inheriting and so can not overwrite anything, he does not find a method to overwrite.

At least this is what we can infer, it may be that there is a lack of context in the question to identify some other problem.

Maybe be in another file of this partial, but the class declaration needs to be the same in all files.

This method belongs to the interface IDisposable then it is at least she who should inherit.

Other errors may or may not be related to this or other inheritances, correcting this will cause others to appear.

But I'm worried because this error is basic and this code is doing something quite sophisticated. Many problems can be happening there without giving error and your code will not be trusted without understanding everything about it. Reflect on the danger you are in.

 1
Author: Maniero, 2019-10-02 14:50:00