Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to simple using statements #73632

Merged
merged 2 commits into from
May 22, 2024

Conversation

CyrusNajmabadi
Copy link
Member

No description provided.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels May 22, 2024
@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review May 22, 2024 05:20
@CyrusNajmabadi CyrusNajmabadi requested review from a team as code owners May 22, 2024 05:20
@CyrusNajmabadi CyrusNajmabadi removed request for a team May 22, 2024 07:47
using (var stream = SerializableBytes.CreateWritableStream())
using var stream = SerializableBytes.CreateWritableStream();
using (var gzipStream = new GZipStream(stream, CompressionLevel.Optimal, leaveOpen: true))
using (var writer = new ObjectWriter(gzipStream, leaveOpen: true))
Copy link
Contributor

Choose a reason for hiding this comment

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

did these two get missed?

@@ -98,10 +98,8 @@ public void TestZeroLengthStreams()
handle = service.WriteToTemporaryStorage(stream1, CancellationToken.None);
}
Copy link
Contributor

@ToddGrun ToddGrun May 22, 2024

Choose a reason for hiding this comment

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

}

this too? or maybe there is a class of usings for which it can't determine the safety of a scope change? #Resolved

Copy link
Member Author

Choose a reason for hiding this comment

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

That would change semantics, moving where the Dispose is called during program execution

Copy link
Contributor

Choose a reason for hiding this comment

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

that's a smart fixer!

Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants