In your code:
class MySQLConnection : MySqlConnection
In the code of the superclass:
public sealed class MySqlConnection : DbConnection, IDisposable, ICloneable
Basically, you shouldn’t inherit from MySqlConnection
. There’s no reason to do that and that sealed
in the class declaration says that it is forbidden to inherit from it.
I don’t know what you’re trying to do, but whatever it is, you shouldn’t try to inherit from MySqlConnection
.
Also, having two classes whose name only differs in upper/lower case is a bad programming practice as it is very confusing.
Probably the class you’re trying to inherit hasn’t been recognized... Tries to rename the class you are creating or check if any reference or using inclusion is missing from the used namespaces.
– Caique C.
Would be appearing error in it, and I could not see the "definition" of it (Peek Definition), already imported everything straight.
– user22408