Skip to content
Draft
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
12 changes: 10 additions & 2 deletions .openpublishing.redirection.csharp.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
{
"source_path_from_root": "/docs/csharp/discards.md",
"redirect_url": "/dotnet/csharp/fundamentals/functional/discards"
"redirect_url": "/dotnet/csharp/fundamentals/patterns/discards"

Check failure on line 41 in .openpublishing.redirection.csharp.json

View workflow job for this annotation

GitHub Actions / MSDocs build verifier

Redirect target returns 404: '/dotnet/csharp/fundamentals/patterns/discards'.
},
{
"source_path_from_root": "/docs/csharp/expression-classes.md",
Expand Down Expand Up @@ -76,6 +76,14 @@
"source_path_from_root": "/docs/csharp/features.md",
"redirect_url": "/dotnet/csharp/programming-guide/concepts"
},
{
"source_path_from_root": "/docs/csharp/fundamentals/functional/discards.md",
"redirect_url": "/dotnet/csharp/fundamentals/patterns/discards"

Check failure on line 81 in .openpublishing.redirection.csharp.json

View workflow job for this annotation

GitHub Actions / MSDocs build verifier

Redirect target returns 404: '/dotnet/csharp/fundamentals/patterns/discards'.
},
{
"source_path_from_root": "/docs/csharp/fundamentals/functional/pattern-matching.md",
"redirect_url": "/dotnet/csharp/fundamentals/patterns/pattern-matching"

Check failure on line 85 in .openpublishing.redirection.csharp.json

View workflow job for this annotation

GitHub Actions / MSDocs build verifier

Redirect target returns 404: '/dotnet/csharp/fundamentals/patterns/pattern-matching'.
},
{
"source_path_from_root": "/docs/csharp/fundamentals/null-safety/migration-strategies.md",
"redirect_url": "/dotnet/csharp/advanced-topics/update-applications/nullable-migration-strategies"
Expand Down Expand Up @@ -3370,7 +3378,7 @@
},
{
"source_path_from_root": "/docs/csharp/pattern-matching.md",
"redirect_url": "/dotnet/csharp/fundamentals/functional/pattern-matching"
"redirect_url": "/dotnet/csharp/fundamentals/patterns/pattern-matching"
},
{
"source_path_from_root": "/docs/csharp/programming-guide/arrays/arrays-as-objects.md",
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/advanced-topics/expression-trees/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ Expression trees don't support new expression node types. It would be a breaking
- Expressions using <xref:System.Index?displayProperty=nameWithType> or <xref:System.Range?displayProperty=nameWithType>, [index "from end" (`^`) operator](../../language-reference/operators/member-access-operators.md#index-from-end-operator-) or [range expressions (`..`)](../../language-reference/operators/member-access-operators.md#range-operator-)
- [`async` lambda expressions or `await` expressions](../../language-reference/operators/lambda-expressions.md#async-lambdas), including [`await foreach` and `await using`](../../language-reference/operators/await.md#asynchronous-streams-and-disposables)
- [Tuple literals, tuple conversions, tuple `==` or `!=`, or `with` expressions](../../language-reference/builtin-types/value-tuples.md)
- [Discards (`_`)](../../fundamentals/functional/discards.md), [deconstructing assignment](../../fundamentals/functional/deconstruct.md), [pattern matching `is` operator, or the pattern matching `switch` expression](../../language-reference/operators/patterns.md)
- [Discards (`_`)](../../fundamentals/patterns/discards.md), [deconstructing assignment](../../fundamentals/functional/deconstruct.md), [pattern matching `is` operator, or the pattern matching `switch` expression](../../language-reference/operators/patterns.md)
- COM call with `ref` omitted on the arguments
- [`ref`](../../language-reference/keywords/ref.md), [`in`](../../language-reference/keywords/method-parameters.md#in-parameter-modifier) or [`out`](../../language-reference/keywords/method-parameters.md#out-parameter-modifier) parameters, `ref` return values, `out` arguments, or any values of [`ref struct` type](../../language-reference/builtin-types/ref-struct.md)
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ The `HalogenLight` you created earlier doesn't support blinking. So, don't add t

## Detect the light types using pattern matching

Next, let's write some test code. You can make use of C#'s [pattern matching](../../fundamentals/functional/pattern-matching.md) feature to determine a light's capabilities by examining which interfaces it supports. The following method exercises the supported capabilities of each light:
Next, let's write some test code. You can make use of C#'s [pattern matching](../../fundamentals/patterns/pattern-matching.md) feature to determine a light's capabilities by examining which interfaces it supports. The following method exercises the supported capabilities of each light:

:::code language="csharp" source="./snippets/mixins-with-default-interface-methods/Program.cs" id="SnippetTestLightFunctions":::

Expand Down
1 change: 1 addition & 0 deletions docs/csharp/fundamentals/expressions/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,5 @@ For a broader look at null-safe operators, see [C# null operators](../null-safet
- [Arithmetic, comparison, logical, and assignment operators](operators.md) — the everyday operators in depth
- [Equality comparisons](equality.md) — how `==`, `!=`, and `Equals` work
- [C# null operators](../null-safety/null-operators.md) — `?.`, `??`, and `??=`
- [Pattern matching](../patterns/pattern-matching.md) — use a `switch` expression to select a value by matching the type, value, or shape of data
- [Boolean logical operators](../../language-reference/operators/boolean-logical-operators.md)
2 changes: 1 addition & 1 deletion docs/csharp/fundamentals/functional/deconstruct.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,5 @@ When you declare a [record](../../language-reference/builtin-types/record.md) ty
## See also

- [Deconstruct variable declaration (style rule IDE0042)](../../../fundamentals/code-analysis/style-rules/ide0042.md)
- [Discards](discards.md)
- [Discards](../patterns/discards.md)
- [Tuple types](../../language-reference/builtin-types/value-tuples.md)
85 changes: 0 additions & 85 deletions docs/csharp/fundamentals/functional/discards.md

This file was deleted.

Loading
Loading