Skip to content

Commit 7aac7bd

Browse files
authored
Update GetStarted TOC and curate tutorials (#45144)
* Convert first tutorial to try.net snippets Move the TOC nodes, convert the initial tutorial to a snippet style. * Add note on using the interactive window. * Consolidate the Numbers tutorial Combine the online and local tutorials for numbers. * Consolidate the Branches tutorial Combine the online and local tutorials for branches and loops. * warnings * Consolidate the last intro tutorial Consolidate the list collections tutorial into one online version. * Edit and update the index * fix warnings
1 parent 8f90cc9 commit 7aac7bd

28 files changed

+1113
-1937
lines changed

.openpublishing.redirection.csharp.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4156,6 +4156,22 @@
41564156
"source_path_from_root": "/docs/csharp/tour-of-csharp/types.md",
41574157
"redirect_url": "/dotnet/csharp/tour-of-csharp"
41584158
},
4159+
{
4160+
"source_path_from_root": "/docs/csharp/tour-of-csharp/tutorials/arrays-and-collections.md",
4161+
"redirect_url": "/dotnet/csharp/tour-of-csharp/tutorials/list-collection"
4162+
},
4163+
{
4164+
"source_path_from_root": "/docs/csharp/tour-of-csharp/tutorials/local-environment.md",
4165+
"redirect_url": "/dotnet/csharp/tour-of-csharp/tutorials"
4166+
},
4167+
{
4168+
"source_path_from_root": "/docs/csharp/tour-of-csharp/tutorials/branches-and-loops-local.md",
4169+
"redirect_url": "/dotnet/csharp/tour-of-csharp/tutorials/branches-and-loops"
4170+
},
4171+
{
4172+
"source_path_from_root": "/docs/csharp/tour-of-csharp/tutorials/numbers-in-csharp-local.md",
4173+
"redirect_url": "/dotnet/csharp/tour-of-csharp/tutorials/numbers-in-csharp"
4174+
},
41594175
{
41604176
"source_path_from_root": "/docs/csharp/tuples.md",
41614177
"redirect_url": "/dotnet/csharp/language-reference/builtin-types/value-tuples"

docs/core/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,6 @@ There are multiple variants of .NET, each supporting a different type of app. Th
8383
## Next steps
8484

8585
* [Choose a .NET tutorial](tutorials/index.md)
86-
* [Try .NET in your browser](../csharp/tour-of-csharp/tutorials/numbers-in-csharp.yml)
86+
* [Try .NET in your browser](../csharp/tour-of-csharp/tutorials/numbers-in-csharp.md)
8787
* [Take a tour of C#](../csharp/tour-of-csharp/overview.md)
8888
* [Take a tour of F#](../fsharp/tour.md)

docs/csharp/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ productDirectory:
6161
text: A tour of C#
6262
- url: ./tour-of-csharp/tutorials/index.md
6363
text: Beginner C# tutorials
64-
- url: ./tour-of-csharp/tutorials/hello-world.yml
64+
- url: ./tour-of-csharp/tutorials/hello-world.md
6565
text: Try C# in your browser
6666
- url: ./fundamentals/program-structure/index.md
6767
text: "Inside a C# program"

docs/csharp/toc.yml

Lines changed: 14 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -5,38 +5,28 @@ items:
55
items:
66
- name: Tour of C#
77
href: tour-of-csharp/overview.md
8-
- name: Learn C# for Java developers
9-
href: tour-of-csharp/tips-for-java-developers.md
10-
- name: Learn C# for JavaScript developers
11-
href: tour-of-csharp/tips-for-javascript-developers.md
12-
- name: Learn C# for Python developers
13-
href: tour-of-csharp/tips-for-python-developers.md
14-
- name: C# language strategy
15-
href: tour-of-csharp/strategy.md
168
- name: Tutorials
179
items:
1810
- name: Choose your first lesson
1911
href: tour-of-csharp/tutorials/index.md
20-
- name: Browser based tutorials
21-
items:
22-
- name: Hello world
23-
href: tour-of-csharp/tutorials/hello-world.yml
24-
- name: Numbers in C#
25-
href: tour-of-csharp/tutorials/numbers-in-csharp.yml
26-
- name: Branches and loops
27-
href: tour-of-csharp/tutorials/branches-and-loops.yml
28-
- name: List collections
29-
href: tour-of-csharp/tutorials/list-collection.yml
30-
- name: Work in your local environment
12+
- name: Tutorials
3113
items:
32-
- name: Set up your environment
33-
href: tour-of-csharp/tutorials/local-environment.md
14+
- name: Hello world and text
15+
href: tour-of-csharp/tutorials/hello-world.md
3416
- name: Numbers in C#
35-
href: tour-of-csharp/tutorials/numbers-in-csharp-local.md
17+
href: tour-of-csharp/tutorials/numbers-in-csharp.md
3618
- name: Branches and loops
37-
href: tour-of-csharp/tutorials/branches-and-loops-local.md
19+
href: tour-of-csharp/tutorials/branches-and-loops.md
3820
- name: List collections
39-
href: tour-of-csharp/tutorials/arrays-and-collections.md
21+
href: tour-of-csharp/tutorials/list-collection.md
22+
- name: C# language strategy
23+
href: tour-of-csharp/strategy.md
24+
- name: Learn C# for Java developers
25+
href: tour-of-csharp/tips-for-java-developers.md
26+
- name: Learn C# for JavaScript developers
27+
href: tour-of-csharp/tips-for-javascript-developers.md
28+
- name: Learn C# for Python developers
29+
href: tour-of-csharp/tips-for-python-developers.md
4030
- name: Fundamentals
4131
items:
4232
- name: Program structure

docs/csharp/tour-of-csharp/index.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ landingContent:
2626
- text: "Self-guided tutorials"
2727
url: https://learn.microsoft.com/users/dotnet/collections/yz26f8y64n7k07?WT.mc_id=dotnet-35129-website
2828
- text: "In-browser tutorial"
29-
url: ./tutorials/hello-world.yml
29+
url: ./tutorials/hello-world.md
3030
- linkListType: reference
3131
links:
3232
- text: "C# on Q&A"

docs/csharp/tour-of-csharp/tips-for-python-developers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ C# and Python share similar concepts. These familiar constructs help you learn C
1717

1818
As you start learning C#, you'll learn these important concepts where C# is different than Python:
1919

20-
1. [***Indentation vs. tokens***](./tutorials/branches-and-loops-local.md): In Python, newlines and indentation are first-class syntactic elements. In C#, whitespace isn't significant. Tokens, like `;` separate statements, and other tokens `{` and `}` control block scope for `if` and other block statements. However, for readability, most coding styles (including the style used in these docs) use indentation to reinforce the block scopes declared by `{` and `}`.
20+
1. [***Indentation vs. tokens***](./tutorials/branches-and-loops.md): In Python, newlines and indentation are first-class syntactic elements. In C#, whitespace isn't significant. Tokens, like `;` separate statements, and other tokens `{` and `}` control block scope for `if` and other block statements. However, for readability, most coding styles (including the style used in these docs) use indentation to reinforce the block scopes declared by `{` and `}`.
2121
1. [***Static typing***](../fundamentals/types/index.md): In C#, a variable declaration includes its type. Reassigning a variable to an object of a different type generates a compiler error. In Python, the type can change when reassigned.
2222
1. [***Nullable types***](../nullable-references.md): C# variables can be *nullable* or *non-nullable*. A non-nullable type is one that can't be null (or nothing). It always refers to a valid object. By contrast, a nullable type might either refer to a valid object, or null.
2323
1. [***LINQ***](../linq/index.md): The query expression keywords that make up Language Integrated Query (LINQ) aren't keywords in Python. However, Python libraries like `itertools`, `more-itertools`, and `py-linq` provide similar functionality.

docs/csharp/tour-of-csharp/tutorials/arrays-and-collections.md

Lines changed: 0 additions & 210 deletions
This file was deleted.

0 commit comments

Comments
 (0)