Skip to content

Conversation

x37v
Copy link

@x37v x37v commented Oct 22, 2019

No description provided.

@x37v x37v requested a review from gtbX October 22, 2019 22:10
/// </summary>
public void Dispose()
{
Dispose(true);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since Inner already handles finalizing the statement, you don't need to muck about with this pattern. Just public void Dispose() => Inner.Dispose(); and drop the protected version in this class

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ack, updated

public class SQLitePreparedStatement : IDisposable {
Sqlite3Statement Statement;
SQLiteConnection Connection { get; set; }
SQLiteConnection Connection { get; set; }
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

private setter?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isn't the whole thing private by default?

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... yes. didn't notice that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants