Skip to content

Conversation

lcheunglci
Copy link
Contributor

Relates to #1261 . I merged the netfx version of SqlDependency into the netcore version and move it to the shared src. I was originally going to allow the resource attributes but that would require an update to the StringsHelper which is currently being merged in #1288 so I left it with the ifdef NETFRAMEWORK, but once that PR is merged, I could revised this. Also I updated the file to conform the coding style but I left two IDE0063 info messages because I found the using statement in line 512 and 545 more readable, but the intellisense recommended change is with C# 8 syntax without the extra scope body, so if that is preferred I am more than happy to change it.

@Wraith2
Copy link
Contributor

Wraith2 commented Sep 28, 2021

I much prefer usings with scope. If the MS team agree I think we'd need to update the repo editor config to make it stop suggesting the implicitly scoped version.

@DavoudEshtehari DavoudEshtehari added the Code Health 💊 Issues/PRs that are targeted to source code quality improvements. label Sep 30, 2021
@DavoudEshtehari DavoudEshtehari added this to the 4.0.0-preview3 milestone Sep 30, 2021
@johnnypham
Copy link
Contributor

johnnypham commented Oct 1, 2021

I much prefer usings with scope. If the MS team agree I think we'd need to update the repo editor config to make it stop suggesting the implicitly scoped version.

I have no preference as long as it's readable.

@JRahnama
Copy link
Contributor

JRahnama commented Oct 8, 2021

@lcheunglci can you address the conflict please?

@Kaur-Parminder
Copy link
Contributor

Kaur-Parminder commented Oct 13, 2021

@lcheunglci There are some methods that can use body expressions, for lines 134, 183, 219, 465, 561, 576, 582, 734, 740

@JRahnama JRahnama merged commit bc4046f into dotnet:main Oct 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Health 💊 Issues/PRs that are targeted to source code quality improvements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants