Skip to content

Replace default constructor with parameterless - #20873

Merged
BillWagner merged 1 commit into
dotnet:masterfrom
QwerMike:11957-parameterless-constructor
Oct 2, 2020
Merged

BillWagner merged 1 commit into
dotnet:masterfrom
QwerMike:11957-parameterless-constructor

Conversation

@QwerMike

@QwerMike QwerMike commented Oct 1, 2020

Copy link
Copy Markdown
Contributor

Summary

Updated the article "How to initialize objects by using an object
initializer". Replaced "default" constructor with "parameterless"
in the article itself and corresponding code snippets file.

Contributes to the issue #11957

Contributes to the issue #11957

Updated the article "How to initialize objects by using an object
initializer". Replaced "default" constructor with "parameterless"
in the article itself and corresponding code snippets file.
@dotnet-bot dotnet-bot added this to the October 2020 milestone Oct 1, 2020
@BillWagner BillWagner added the ✨ 1st-time docs contributor! Indicates PRs from new contributors to the docs repository label Oct 2, 2020

@BillWagner BillWagner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for spotting this and fixing it @QwerMike

I've reviewed the changes, and I'll :shipit: now.

@BillWagner
BillWagner merged commit 97bc5a0 into dotnet:master Oct 2, 2020
BillWagner pushed a commit that referenced this pull request Oct 5, 2020
* Refactor couple of code style rules to separate docs

Creating this initial PR as the proposed structure of IDE code style rule docs.
- Rule ID + option name based index
- We retain the rule ID-agnostic table based on just the option groups and option names in individual Language rules, Formatting rules and Naming rules pages. This could be a preferred browsing approach for users who just want to look at options, and don't care about rule severities, and hence rule IDs.
- All the rule specific content moves to separate `idexxxx.md` pages. Whenever multiple rules are used by the same option or an option group, we will create a single doc page, but have necessary id based redirects so the IDE analyzers themselves can use deterministic help links which end in `idexxxx`.

* Fix links

* Update docs/fundamentals/code-analysis/style-rules/index.md

* Update docs/fundamentals/code-analysis/style-rules/language-rules.md

* Fix table headers

* Rename file

* Rename column title

* Apply suggestions from code review

Co-authored-by: Genevieve Warren <[email protected]>

* Apply suggestions from code review

* Refactor out modifier preferences style rules and also restructure the toc reference a bit

* Fix links

* Try to fix build

* Remove quotes

* Refactor out Parentheses preferences - IDE0047 and IDE0048

* Update title for 'this and Me preferences' to make it consistent

* Update package index with latest published versions

* Port the remaining .NET style rules + address feedback

* Feedback

* Update docs/fundamentals/code-analysis/style-rules/ide0044.md

Co-authored-by: Genevieve Warren <[email protected]>

* Update docs/fundamentals/code-analysis/style-rules/ide0003-ide0009.md

* Update docs/fundamentals/code-analysis/style-rules/ide0036.md

* Add blank lines

* Add reference to .NET for Apache Spark open source repository (#20883)

* IDE0058 and IDE0059

* fix lint errors

* Replace default constructor with parameterless (#20873)

Contributes to the issue #11957

Updated the article "How to initialize objects by using an object
initializer". Replaced "default" constructor with "parameterless"
in the article itself and corresponding code snippets file.

* Fix typo in file name

* Fix links

* Apply suggestions from code review

Co-authored-by: Genevieve Warren <[email protected]>

* Apply suggestions from code review

Co-authored-by: Genevieve Warren <[email protected]>

* Address feedback

* Remove link

* Remove Option group column for the table and also adjust the Legend

* Replace `\_` with `_` in refactored rules

* Move entry up

* Fix table

* Fix typo

* Single file debugging (#20857)

* Add debugging section for single-file

* Styled file paths; changed link to relative

* Add more info about possible debugger errors

Hopefully this should come up in search engines if people encounter the errors

* Trailing space

Co-authored-by: Andy De George <[email protected]>

* Fix counter name for HttpWebRequests Average Lifetime and Average Queue Time (#20874)

The counter  names HttpWebRequest Average Lifetime and HttpWebRequest Average Queue Time are incorrect. In Perfmon the counters are spelled with a HttpWebRequests being plural. The counters with a singular HttpWebRequest do not actualy exist.

Co-authored-by: Manish Vasani <[email protected]>
Co-authored-by: Genevieve Warren <[email protected]>
Co-authored-by: azure-sdk <[email protected]>
Co-authored-by: Niharika Dutta <[email protected]>
Co-authored-by: Mykhailo <[email protected]>
Co-authored-by: Cam Soper <[email protected]>
Co-authored-by: Andy Gocke <[email protected]>
Co-authored-by: Andy De George <[email protected]>
Co-authored-by: brandonchastain <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dotnet-csharp/svc fundamentals/subsvc ✨ 1st-time docs contributor! Indicates PRs from new contributors to the docs repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants