Skip to content

Conversation

@jmarkman
Copy link
Contributor

@jmarkman jmarkman commented Jun 2, 2020

Summary

User 'Vespiyanus' opened an issue to ask about the $ operator, as it wasn't clear what exactly that operator was doing from their point of view. I've reviewed the "Performing Operations on Source Elements" section and made some modifications:

  • Rewrote the example query explanation

The explanation for the query, while correct, was excessively verbose and did not reflect the brevity and clarity of the code example itself. I rewrote the explanation to describe the whole operation that the query example encompassed.

  • Added a LINQ method syntax example

I've done this for previous pull requests that involved LINQ. While this example is incredibly simple (it's just a select), I think it's good for users of all skill levels to see what a query might look like with both forms of syntax, but more for newer folks especially.

  • Added a brief explanation of what string interpolation was and a link to the full documentation on it

Fixes #18681

jmarkman added 4 commits June 1, 2020 21:27
- refactor query description to clearly describe steps in operation
- add brief explanation of string interpolation and link to
string interpolation page
- change output sequence variable name from 'query' to 'output'
- add linq example using method syntax in addition to query syntax
- add allman braces to foreach loop printing results
…-string-interpolation-clarification-data-transformations-with-linq
Copy link
Member

@BillWagner BillWagner left a comment

Choose a reason for hiding this comment

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

Thanks for helping us improve @jmarkman

I've reviewed this PR, and I'll :shipit: now.

Thanks again. We appreciate it.

@BillWagner BillWagner merged commit 5580736 into dotnet:master Jun 3, 2020
@jmarkman jmarkman deleted the jmarkman-string-interpolation-clarification-data-transformations-with-linq branch June 3, 2020 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

What is $"

3 participants