Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

Format/style pass over System.Private.Reflection.Core. - #1588

Merged
1 commit merged into
nmirrorfrom
unknown repository
Jul 28, 2016
Merged

1 commit merged into
nmirrorfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Jul 28, 2016

Copy link
Copy Markdown

Take advantage of C# 6.0 and bring things closer
to our OSS coding guidelines:

  • Run a CodeFormatter pass.
  • Remove the "global::" qualifiers on the usings
    (a relic from days where we nested them inside the
    namespace blocks)
  • Add "readonly" to fields where possible.
  • Make properties read-only whenever possible.
  • Use nameof() rather than string literal for exceptions.
  • Do a pass for unsealed internal types or unsealed
    overridden members (unless accompanied by a comment
    explaining exactly what I expect to override.)

Take advantage of C# 6.0 and bring things closer
to our OSS coding guidelines:

- Run a CodeFormatter pass.

- Remove the "global::" qualifiers on the usings
  (a relic from days where we nested them inside the
  namespace blocks)

- Add "readonly" to fields where possible.

- Make properties read-only whenever possible.

- Use nameof() rather than string literal for exceptions.

- Do a pass for unsealed internal types or unsealed
  overridden members (unless accompanied by a comment
  explaining exactly what I expect to override.)
@ghost
ghost merged commit 54891c6 into dotnet:nmirror Jul 28, 2016
@ghost
ghost deleted the clean branch July 28, 2016 11:51
This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant