Skip to content

Commit ad727ab

Browse files
BillWagnerpkulikovtdykstraIEvangelist
authored
Restructure and modernize tour of C# (#18538)
* first draft finished. * update and correct all snippets * grammar check * fix build errors and warnings. * fix warnings. * final proofread * Apply suggestions from code review Co-authored-by: Petr Kulikov <petr.kulikov@gmail.com> * build error & incorect code fence. * fix any redirections * Apply suggestions from code review Co-authored-by: Tom Dykstra <tdykstra@microsoft.com> Co-authored-by: David Pine <david.pine@microsoft.com> * respond to feedbck And fix build warnings that crept in. Co-authored-by: Petr Kulikov <petr.kulikov@gmail.com> Co-authored-by: Tom Dykstra <tdykstra@microsoft.com> Co-authored-by: David Pine <david.pine@microsoft.com>
1 parent 9feac23 commit ad727ab

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+1557
-1978
lines changed

.openpublishing.redirection.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,14 +1764,46 @@
17641764
"source_path": "docs/csharp/structs.md",
17651765
"redirect_url": "/dotnet/csharp/language-reference/builtin-types/struct"
17661766
},
1767+
{
1768+
"source_path": "docs/csharp/tour-of-csharp/arrays.md",
1769+
"redirect_url": "/dotnet/csharp/tour-of-csharp/features#arrays-collections-and-LINQ"
1770+
},
1771+
{
1772+
"source_path": "docs/csharp/tour-of-csharp/attributes.md",
1773+
"redirect_url": "/dotnet/csharp/tour-of-csharp/features#attributes"
1774+
},
1775+
{
1776+
"source_path": "docs/csharp/tour-of-csharp/delegates.md",
1777+
"redirect_url": "/dotnet/csharp/tour-of-csharp/features#delegates-and-lambda-expressions"
1778+
},
17671779
{
17681780
"source_path": "docs/csharp/tour-of-csharp/enums.md",
17691781
"redirect_url": "/dotnet/csharp/language-reference/builtin-types/enum"
17701782
},
1783+
{
1784+
"source_path": "docs/csharp/tour-of-csharp/expressions.md",
1785+
"redirect_url": "/dotnet/csharp/tour-of-csharp/program-building-blocks#expressions"
1786+
},
1787+
{
1788+
"source_path": "docs/csharp/tour-of-csharp/interfaces.md",
1789+
"redirect_url": "/dotnet/csharp/tour-of-csharp/types#interfaces"
1790+
},
1791+
{
1792+
"source_path": "docs/csharp/tour-of-csharp/program-structure.md",
1793+
"redirect_url": "/dotnet/csharp/tour-of-csharp/#program-structure"
1794+
},
1795+
{
1796+
"source_path": "docs/csharp/tour-of-csharp/statements.md",
1797+
"redirect_url": "/dotnet/csharp/tour-of-csharp/program-building-blocks#statements"
1798+
},
17711799
{
17721800
"source_path": "docs/csharp/tour-of-csharp/structs.md",
17731801
"redirect_url": "/dotnet/csharp/language-reference/builtin-types/struct"
17741802
},
1803+
{
1804+
"source_path": "docs/csharp/tour-of-csharp/types-and-variables.md",
1805+
"redirect_url": "/dotnet/csharp/tour-of-csharp/types"
1806+
},
17751807
{
17761808
"source_path": "docs/csharp/tuples.md",
17771809
"redirect_url": "/dotnet/csharp/language-reference/builtin-types/value-tuples"

docs/csharp/methods.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Types can override inherited members by using the `override` keyword and providi
7676

7777
## Passing parameters
7878

79-
Types in C# are either *value types* or *reference types*. For a list of built-in value types, see [Types and variables](./tour-of-csharp/types-and-variables.md). By default, both value types and reference types are passed to a method by value.
79+
Types in C# are either *value types* or *reference types*. For a list of built-in value types, see [Types](./tour-of-csharp/types.md). By default, both value types and reference types are passed to a method by value.
8080

8181
<a name="byval"></a>
8282

docs/csharp/toc.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -72,24 +72,12 @@
7272
items:
7373
- name: Introduction
7474
href: tour-of-csharp/index.md
75-
- name: Program Structure
76-
href: tour-of-csharp/program-structure.md
77-
- name: Types and Variables
78-
href: tour-of-csharp/types-and-variables.md
79-
- name: Expressions
80-
href: tour-of-csharp/expressions.md
81-
- name: Statements
82-
href: tour-of-csharp/statements.md
83-
- name: Classes and objects
84-
href: tour-of-csharp/classes-and-objects.md
85-
- name: Arrays
86-
href: tour-of-csharp/arrays.md
87-
- name: Interfaces
88-
href: tour-of-csharp/interfaces.md
89-
- name: Delegates
90-
href: tour-of-csharp/delegates.md
91-
- name: Attributes
92-
href: tour-of-csharp/attributes.md
75+
- name: Types
76+
href: tour-of-csharp/types.md
77+
- name: Program building blocks
78+
href: tour-of-csharp/program-building-blocks.md
79+
- name: Major language areas
80+
href: tour-of-csharp/features.md
9381
- name: What's new in C#
9482
items:
9583
- name: C# 8.0

docs/csharp/tour-of-csharp/arrays.md

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

docs/csharp/tour-of-csharp/attributes.md

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

0 commit comments

Comments
 (0)