| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
|
Ilya (@iSazonov) What is the preferred solution ? streamWriter.NewLine -> streamWriter.NewLine.ToString() or streamWriter.NewLine -> Environment.NewLine |
Sorry, something went wrong.
We can not use Environment.NewLine since streamWriter can use any value. |
Sorry, something went wrong.
|
Maybe it's not worth the effort. |
Sorry, something went wrong.
There was a problem hiding this comment.
CarloToso Again an test fails.
Sorry, something went wrong.
|
Ilya (@iSazonov) I don't know why the tests are failing, it doesn't make any sense. Maybe it was a random error |
Sorry, something went wrong.
|
This PR has 17 quantified lines of changes. In general, a change size of upto 200 lines is ideal for the best PR experience! Quantification details
Label : Extra Small Size : +4 -13 Percentile : 6.8% Total files changed: 3 Change summary by file extension: .cs : +4 -13 Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |
Sorry, something went wrong.
| _allowSlicing ? string.Empty : " slicing disallowed", | ||
| _constraints == null ? string.Empty : " constraints: " + _constraints, | ||
| _version); | ||
| return string.Create(CultureInfo.InvariantCulture, $"PSGetIndexBinder indexCount={this.CallInfo.ArgumentCount}{(_allowSlicing ? string.Empty : " slicing disallowed")}{(_constraints == null ? string.Empty : " constraints: " + _constraints)} ver:{_version}"); |
There was a problem hiding this comment.
Ilya (@iSazonov) I think this is way less readable than the original code, don't you think so?
Sorry, something went wrong.
There was a problem hiding this comment.
I think more about reducing allocations. My suggestions for improvement I outlined in your PR.
Sorry, something went wrong.
|
🎉v7.4.0-preview.2 has been released which incorporates this pull request.:tada: Handy links: |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
PR Summary
Replace string.Format() with new string.Create((IFormatProvider? provider, [InterpolatedStringHandlerArgument(nameof(provider))] ref DefaultInterpolatedStringHandler handler).
PR Context
#18974, I think this is the last one
PR Checklist
(which runs in a different PS Host).