8000 Consolidate interpolated string tutorials by BillWagner · Pull Request #46013 · dotnet/docs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Consolidate interpolated string tutorials #46013

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 15 additions & 7 deletions .openpublishing.redirection.csharp.json
Original file line number Diff line number Diff line change
Expand Up @@ -4042,12 +4042,12 @@
},
{
"source_path_from_root": "/docs/csharp/quick-starts/interpolated-strings-local.md",
"redirect_url": "/dotnet/csharp/tutorials/exploration/interpolated-strings-local",
"redirect_document_id": true
"redirect_url": "/dotnet/csharp/tutorials/string-interpolation"
},
{
"source_path_from_root": "/docs/csharp/quick-starts/interpolated-strings.md",
"redirect_url": "/dotnet/csharp/tutorials/exploration/interpolated-strings"
"source_path_from_root": "/docs/csharp/quick-starts/interpolated-strings.yml",
"redirect_url": "/dotnet/csharp/tutorials/string-interpolation",
"redirect_document_id": true
},
{
"source_path_from_root": "/docs/csharp/quick-starts/introduction-to-classes.md",
Expand All @@ -4060,7 +4060,7 @@
},
{
"source_path_from_root": "/docs/csharp/quick-starts/local-environment.md",
"redirect_url": "/dotnet/csharp/tour-of-csharp/tutorials",
"redirect_url": "/dotnet/csharp/tour-of-csharp/tutorials/",
"redirect_document_id": true
},
{
Expand Down Expand Up @@ -4208,6 +4208,14 @@
"source_path_from_root": "/docs/csharp/tutorials/exploration/top-level-statements.md",
"redirect_url": "/dotnet/csharp/tutorials/top-level-statements"
},
{
"source_path_from_root": "/docs/csharp/tutorials/exploration/interpolated-strings-local.md",
"redirect_url": "/dotnet/csharp/tutorials/string-interpolation"
},
{
"source_path_from_root": "/docs/csharp/tutorials/exploration/interpolated-strings.yml",
"redirect_url": "/dotnet/csharp/tutorials/string-interpolation"
},
{
"source_path_from_root": "/docs/csharp/tutorials/generate-consume-asynchronous-stream.md",
"redirect_url": "/dotnet/csharp/asynchronous-programming/generate-consume-asynchronous-stream"
Expand Down Expand Up @@ -4242,11 +4250,11 @@
},
{
"source_path_from_root": "/docs/csharp/tutorials/intro-to-csharp/interpolated-strings-local.md",
"redirect_url": "/dotnet/csharp/tutorials/exploration/interpolated-strings-local"
"redirect_url": "/dotnet/csharp/tutorials/interpolated-strings"
},
{
"source_path_from_root": "/docs/csharp/tutorials/intro-to-csharp/interpolated-strings.yml",
"redirect_url": "/dotnet/csharp/tutorials/exploration/interpolated-strings"
"redirect_url": "/dotnet/csharp/tutorials/interpolated-strings"
},
{
"source_path_from_root": "/docs/csharp/tutorials/intro-to-csharp/introduction-to-classes.md",
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/language-reference/tokens/interpolated.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ For more information about custom formatting, see the [Custom formatting with IC

## Other resources

If you're new to string interpolation, see the [String interpolation in C#](../../tutorials/exploration/interpolated-strings.yml) interactive tutorial. You can also check another [String interpolation in C#](../../tutorials/string-interpolation.md) tutorial. That tutorial demonstrates how to use interpolated strings to produce formatted strings.
If you're new to string interpolation, see the [String interpolation in C#](../../tutorials/string-interpolation.md) interactive tutorial. That tutorial demonstrates how to use interpolated strings to produce formatted strings.

## Compilation of interpolated strings

Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/programming-guide/strings/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ A format string is a string whose contents are determined dynamically at run tim

### String interpolation

You declare [*Interpolated strings*](../../language-reference/tokens/interpolated.md) with the `$` special character. An interpolated string includes interpolated expressions in braces. If you're new to string interpolation, see the [String interpolation - C# interactive tutorial](../../tutorials/exploration/interpolated-strings.yml) for a quick overview.
You declare [*Interpolated strings*](../../language-reference/tokens/interpolated.md) with the `$` special character. An interpolated string includes interpolated expressions in braces. If you're new to string interpolation, see the [String interpolation - C# tutorial](../../tutorials/string-interpolation.md) for several examples.

Use string interpolation to improve the readability and maintainability of your code. String interpolation achieves the same results as the `String.Format` method, but is easier to use and improves inline clarity.

Expand Down
6 changes: 1 addition & 5 deletions docs/csharp/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,13 +186,9 @@ items:
href: tutorials/ranges-indexes.md
- name: Work with nullable reference types
href: tutorials/nullable-reference-types.md
- name: Explore string interpolation - interactive
href: tutorials/exploration/interpolated-strings.yml
- name: Explore string interpolation - in your environment
href: tutorials/exploration/interpolated-strings-local.md
- name: Explore patterns in objects
href: tutorials/patterns-objects.md
- name: Advanced scenarios for string Interpolation
- name: String interpolation
href: tutorials/string-interpolation.md
- name: Console Application
href: tutorials/console-teleprompter.md
Expand Down
162 changes: 0 additions & 162 deletions docs/csharp/tutorials/exploration/interpolated-strings-local.md

This file was deleted.

Loading
0