Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 3 additions & 7 deletions Source/MySql.Data/datareader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
namespace MySql.Data.MySqlClient
{
/// <include file='docs/MySqlDataReader.xml' path='docs/ClassSummary/*'/>
public sealed partial class MySqlDataReader : IDisposable
public sealed partial class MySqlDataReader : DbDataReader
{
// The DataReader should always be open when returned to the user.
private bool isOpen = true;
Expand Down Expand Up @@ -1035,14 +1035,10 @@ private void Throw(Exception ex)
throw ex;
}

public new void Dispose()
protected override void Dispose(bool disposing)
{
Dispose(true);
GC.SuppressFinalize(this);
}
base.Dispose(disposing);

internal new void Dispose(bool disposing)
{
if (disposing)
{
Close();
Expand Down