dotnet / dotnet/docs

[UUF] Add info about why to choose object initializers

Open
#40,171 0 comments 0 reactions 1 assignee Claimed by @gewarren View on GitHub
:watch: Not Triaged dotnet-fundamentals/svc user-feedback
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
19h 10m
Merged PRs (30d)
268

Description

### Type of issue

Missing information

### Description

There is no information as to why one method of initialising is preferred to the other: which is faster to execute?

### Page URL

https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0017

### Content source URL

https://github.com/dotnet/docs/blob/main/docs/fundamentals/code-analysis/style-rules/ide0017.md

### Document Version Independent Id

240d95b2-6f2b-e18f-d2ee-8432513bce98

### Article author

@gewarren

### Metadata

* ID: 657d6bc4-c229-654a-57b7-de22679c5ca1
* Service: **dotnet-fundamentals**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.