Skip to content

Commit 8726312

Browse files
committed
fix anchors to standard
1 parent e1a22ea commit 8726312

34 files changed

+62
-60
lines changed

.openpublishing.redirection.csharp.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
},
4747
{
4848
"source_path_from_root": "/redirections/proposals/csharp-7.2/conditional-ref.md",
49-
"redirect_url": "/dotnet/csharp/language-reference/language-specification/expressions#1218-conditional-operator"
49+
"redirect_url": "/dotnet/csharp/language-reference/language-specification/expressions#1219-conditional-operator"
5050
},
5151
{
5252
"source_path_from_root": "/redirections/proposals/csharp-7.2/non-trailing-named-arguments.md",
@@ -94,7 +94,7 @@
9494
},
9595
{
9696
"source_path_from_root": "/redirections/proposals/csharp-7.3/pattern-based-fixed.md",
97-
"redirect_url": "/dotnet/csharp/language-reference/language-specification/unsafe-code#237-the-fixed-statement"
97+
"redirect_url": "/dotnet/csharp/language-reference/language-specification/unsafe-code#247-the-fixed-statement"
9898
},
9999
{
100100
"source_path_from_root": "/redirections/proposals/csharp-7.3/ref-local-reassignment.md",
@@ -122,7 +122,7 @@
122122
},
123123
{
124124
"source_path_from_root": "/redirections/proposals/csharp-8.0/null-coalescing-assignment.md",
125-
"redirect_url": "/dotnet/csharp/language-reference/language-specification/expressions#1221-assignment-operators"
125+
"redirect_url": "/dotnet/csharp/language-reference/language-specification/expressions#1222-assignment-operators"
126126
},
127127
{
128128
"source_path_from_root": "/redirections/proposals/csharp-8.0/async-streams.md",

docfx.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,7 @@
623623
"_csharpstandard/standard/classes.md": "Classes",
624624
"_csharpstandard/standard/structs.md": "Structs",
625625
"_csharpstandard/standard/arrays.md": "Arrays",
626+
"_csharpstandard/standard/ranges.md": "Indexes and ranges",
626627
"_csharpstandard/standard/interfaces.md": "Interfaces",
627628
"_csharpstandard/standard/enums.md": "Enums",
628629
"_csharpstandard/standard/delegates.md": "Delegates",
@@ -750,6 +751,7 @@
750751
"_csharpstandard/standard/classes.md": "This chapter covers class declarations, including all member types that can be included in classes. This includes generic classes as well as non-generic classes.",
751752
"_csharpstandard/standard/structs.md": "This chapter defines struct declarations. In many cases, the descriptions are defined using the differences between classes and structs.",
752753
"_csharpstandard/standard/arrays.md": "This chapter defines arrays. It includes the rules for array variance, multi-dimensional arrays and jagged arrays.",
754+
"_csharpstandard/standard/ranges.md": "This chapter defines the index and range operators for indexing into arrays, strings and spans.",
753755
"_csharpstandard/standard/interfaces.md": "This chapter defines interfaces. This includes interface declarations, implementing interfaces, and explicit interface implementation.",
754756
"_csharpstandard/standard/enums.md": "This chapter defines the enum types in C#. Enums create a set of named constants and are represented by an underlying integral set of values.",
755757
"_csharpstandard/standard/delegates.md": "This chapter defines delegates, which are objects that hold type safe function pointers.",

docs/csharp/advanced-topics/reflection-and-attributes/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ For example, the following code shows three equivalent `DllImport` attributes:
113113
[DllImport("user32.dll", ExactSpelling=false, SetLastError=false)]
114114
```
115115

116-
The first parameter, the DLL name, is positional and always comes first. The other instances are named parameters. In this scenario, both named parameters default to false, so they can be omitted. Refer to the individual attribute's documentation for information on default parameter values. For more information on allowed parameter types, see the [Attributes](~/_csharpstandard/standard/attributes.md#2224-attribute-parameter-types) section of the [C# language specification](~/_csharpstandard/standard/README.md).
116+
The first parameter, the DLL name, is positional and always comes first. The other instances are named parameters. In this scenario, both named parameters default to false, so they can be omitted. Refer to the individual attribute's documentation for information on default parameter values. For more information on allowed parameter types, see the [Attributes](~/_csharpstandard/standard/attributes.md#2324-attribute-parameter-types) section of the [C# language specification](~/_csharpstandard/standard/README.md).
117117

118118
### Attribute targets
119119

docs/csharp/asynchronous-programming/async-return-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ The following example shows the behavior of an async event handler. In the examp
7373

7474
An async method can return any type that has an accessible `GetAwaiter` method that returns an instance of an *awaiter type*. In addition, the returned type must match the type of the parameter of `SetResult` and returned type of the `Task` property on the type specified by the <xref:System.Runtime.CompilerServices.AsyncMethodBuilderAttribute?displayProperty=nameWithType> attribute. You can learn more in the article on [Attributes read by the compiler](../language-reference/attributes/general.md#asyncmethodbuilder-attribute) or the C# spec for the [Task type builder pattern](~/_csharpstandard/standard/classes.md#15142-task-type-builder-pattern).
7575

76-
This feature is the complement to [awaitable expressions](~/_csharpstandard/standard/expressions.md#12982-awaitable-expressions), which describes the requirements for the operand of `await`. Generalized async return types enable the compiler to generate `async` methods that return different types. Generalized async return types enabled performance improvements in the .NET libraries. Because <xref:System.Threading.Tasks.Task> and <xref:System.Threading.Tasks.Task%601> are reference types, memory allocation in performance-critical paths, particularly when allocations occur in tight loops, can adversely affect performance. Support for generalized return types means that you can return a lightweight value type instead of a reference type to avoid more memory allocations.
76+
This feature is the complement to [awaitable expressions](~/_csharpstandard/standard/expressions.md#12992-awaitable-expressions), which describes the requirements for the operand of `await`. Generalized async return types enable the compiler to generate `async` methods that return different types. Generalized async return types enabled performance improvements in the .NET libraries. Because <xref:System.Threading.Tasks.Task> and <xref:System.Threading.Tasks.Task%601> are reference types, memory allocation in performance-critical paths, particularly when allocations occur in tight loops, can adversely affect performance. Support for generalized return types means that you can return a lightweight value type instead of a reference type to avoid more memory allocations.
7777

7878
.NET provides the <xref:System.Threading.Tasks.ValueTask%601?displayProperty=nameWithType> structure as a lightweight implementation of a generalized task-returning value. The following example uses the <xref:System.Threading.Tasks.ValueTask%601> structure to retrieve the value of two dice rolls.
7979

docs/csharp/language-reference/builtin-types/enum.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ For any enumeration type, there exist [boxing and unboxing](../../programming-gu
8787
For more information, see the following sections of the [C# language specification](~/_csharpstandard/standard/README.md):
8888

8989
- [Enums](~/_csharpstandard/standard/enums.md)
90-
- [Enum values and operations](~/_csharpstandard/standard/enums.md#196-enum-values-and-operations)
91-
- [Enumeration logical operators](~/_csharpstandard/standard/expressions.md#12133-enumeration-logical-operators)
92-
- [Enumeration comparison operators](~/_csharpstandard/standard/expressions.md#12126-enumeration-comparison-operators)
90+
- [Enum values and operations](~/_csharpstandard/standard/enums.md#206-enum-values-and-operations)
91+
- [Enumeration logical operators](~/_csharpstandard/standard/expressions.md#12143-enumeration-logical-operators)
92+
- [Enumeration comparison operators](~/_csharpstandard/standard/expressions.md#12136-enumeration-comparison-operators)
9393
- [Explicit enumeration conversions](~/_csharpstandard/standard/conversions.md#1033-explicit-enumeration-conversions)
9494
- [Implicit enumeration conversions](~/_csharpstandard/standard/conversions.md#1024-implicit-enumeration-conversions)
9595

docs/csharp/language-reference/builtin-types/unmanaged-types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ A generic struct may be the source of both unmanaged and managed constructed typ
2727

2828
## C# language specification
2929

30-
For more information, see the [Pointer types](~/_csharpstandard/standard/unsafe-code.md#233-pointer-types) section of the [C# language specification](~/_csharpstandard/standard/README.md).
30+
For more information, see the [Pointer types](~/_csharpstandard/standard/unsafe-code.md#243-pointer-types) section of the [C# language specification](~/_csharpstandard/standard/README.md).
3131

3232
## See also
3333

docs/csharp/language-reference/operators/addition-operator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ A user-defined type can [overload](operator-overloading.md) the `+` operator. Wh
7272

7373
## C# language specification
7474

75-
For more information, see the [Unary plus operator](~/_csharpstandard/standard/expressions.md#1292-unary-plus-operator) and [Addition operator](~/_csharpstandard/standard/expressions.md#12105-addition-operator) sections of the [C# language specification](~/_csharpstandard/standard/README.md). For more information on overloading the compound assignment operators in C# 14 and later, see the [user defined compound assignment](~/_csharplang/proposals/csharp-14.0/user-defined-compound-assignment.md) feature specification.
75+
For more information, see the [Unary plus operator](~/_csharpstandard/standard/expressions.md#1292-unary-plus-operator) and [Addition operator](~/_csharpstandard/standard/expressions.md#12115-addition-operator) sections of the [C# language specification](~/_csharpstandard/standard/README.md). For more information on overloading the compound assignment operators in C# 14 and later, see the [user defined compound assignment](~/_csharplang/proposals/csharp-14.0/user-defined-compound-assignment.md) feature specification.
7676

7777
## See also
7878

docs/csharp/language-reference/operators/arithmetic-operators.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ For the `float` and `double` operands, the result of `x % y` for the finite `x`
138138
> [!NOTE]
139139
> This method of computing the remainder is analogous to the method used for integer operands, but different from the IEEE 754 specification. If you need the remainder operation that complies with the IEEE 754 specification, use the <xref:System.Math.IEEERemainder%2A?displayProperty=nameWithType> method.
140140
141-
For information about the behavior of the `%` operator with non-finite operands, see the [Remainder operator](~/_csharpstandard/standard/expressions.md#12104-remainder-operator) section of the [C# language specification](~/_csharpstandard/standard/README.md).
141+
For information about the behavior of the `%` operator with non-finite operands, see the [Remainder operator](~/_csharpstandard/standard/expressions.md#12114-remainder-operator) section of the [C# language specification](~/_csharpstandard/standard/README.md).
142142

143143
For the `decimal` operands, the remainder operator `%` is equivalent to the [remainder operator](<xref:System.Decimal.op_Modulus(System.Decimal,System.Decimal)>) of the <xref:System.Decimal?displayProperty=nameWithType> type.
144144

@@ -279,15 +279,15 @@ You can use the `checked` modifier only when you overload any of the following o
279279
For more information, see the following sections of the [C# language specification](~/_csharpstandard/standard/README.md):
280280

281281
- [Postfix increment and decrement operators](~/_csharpstandard/standard/expressions.md#12816-postfix-increment-and-decrement-operators)
282-
- [Prefix increment and decrement operators](~/_csharpstandard/standard/expressions.md#1296-prefix-increment-and-decrement-operators)
282+
- [Prefix increment and decrement operators](~/_csharpstandard/standard/expressions.md#1297-prefix-increment-and-decrement-operators)
283283
- [Unary plus operator](~/_csharpstandard/standard/expressions.md#1292-unary-plus-operator)
284284
- [Unary minus operator](~/_csharpstandard/standard/expressions.md#1293-unary-minus-operator)
285-
- [Multiplication operator](~/_csharpstandard/standard/expressions.md#12102-multiplication-operator)
286-
- [Division operator](~/_csharpstandard/standard/expressions.md#12103-division-operator)
287-
- [Remainder operator](~/_csharpstandard/standard/expressions.md#12104-remainder-operator)
288-
- [Addition operator](~/_csharpstandard/standard/expressions.md#12105-addition-operator)
289-
- [Subtraction operator](~/_csharpstandard/standard/expressions.md#12106-subtraction-operator)
290-
- [Compound assignment](~/_csharpstandard/standard/expressions.md#12214-compound-assignment)
285+
- [Multiplication operator](~/_csharpstandard/standard/expressions.md#12112-multiplication-operator)
286+
- [Division operator](~/_csharpstandard/standard/expressions.md#12113-division-operator)
287+
- [Remainder operator](~/_csharpstandard/standard/expressions.md#12114-remainder-operator)
288+
- [Addition operator](~/_csharpstandard/standard/expressions.md#12115-addition-operator)
289+
- [Subtraction operator](~/_csharpstandard/standard/expressions.md#12116-subtraction-operator)
290+
- [Compound assignment](~/_csharpstandard/standard/expressions.md#12224-compound-assignment)
291291
- [The checked and unchecked operators](~/_csharpstandard/standard/expressions.md#12820-the-checked-and-unchecked-operators)
292292
- [Numeric promotions](~/_csharpstandard/standard/expressions.md#1247-numeric-promotions)
293293
- [User defined compound assignment](~/_csharplang/proposals/csharp-14.0/user-defined-compound-assignment.md)

docs/csharp/language-reference/operators/assignment-operator.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ If a user-defined type overloads a binary operator `op`, the `op=` operator, if
8181

8282
## C# language specification
8383

84-
For more information, see the [Assignment operators](~/_csharpstandard/standard/expressions.md#1221-assignment-operators) section of the [C# language specification](~/_csharpstandard/standard/README.md) and the [User defined compound assignment](~/_csharplang/proposals/csharp-14.0/user-defined-compound-assignment.md) feature specification.
84+
For more information, see the [Assignment operators](~/_csharpstandard/standard/expressions.md#1222-assignment-operators) section of the [C# language specification](~/_csharpstandard/standard/README.md) and the [User defined compound assignment](~/_csharplang/proposals/csharp-14.0/user-defined-compound-assignment.md) feature specification.
8585

8686
## See also
8787

docs/csharp/language-reference/operators/await.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ In the following example, the <xref:System.Net.Http.HttpClient.GetByteArrayAsync
1616

1717
[!code-csharp[await example](snippets/shared/AwaitOperator.cs)]
1818

19-
The operand of an `await` expression must provide for notification when a task completes. In general, a delegate is invoked when the task completes, either successfully or unsuccessfully. The [`await`](~/_csharpstandard/standard/expressions.md#1298-await-expressions) section of the C# language spec provides the details on how these notifications are implemented.
19+
The operand of an `await` expression must provide for notification when a task completes. In general, a delegate is invoked when the task completes, either successfully or unsuccessfully. The [`await`](~/_csharpstandard/standard/expressions.md#1299-await-expressions) section of the C# language spec provides the details on how these notifications are implemented.
2020

2121
The preceding example uses the [async `Main` method](../../fundamentals/program-structure/main-command-line.md). For more information, see the [await operator in the Main method](#await-operator-in-the-main-method) section.
2222

@@ -25,7 +25,7 @@ The preceding example uses the [async `Main` method](../../fundamentals/program-
2525
2626
You can use the `await` operator only in a method, [lambda expression](lambda-expressions.md), or [anonymous method](delegate-operator.md) that is modified by the [async](../keywords/async.md) keyword. Within an async method, you can't use the `await` operator in the body of a synchronous local function, inside the block of a [lock statement](../statements/lock.md), and in an [unsafe](../keywords/unsafe.md) context.
2727

28-
The operand of the `await` operator is usually of one of the following .NET types: <xref:System.Threading.Tasks.Task>, <xref:System.Threading.Tasks.Task%601>, <xref:System.Threading.Tasks.ValueTask>, or <xref:System.Threading.Tasks.ValueTask%601>. However, any awaitable expression can be the operand of the `await` operator. For more information, see the [Awaitable expressions](~/_csharpstandard/standard/expressions.md#12982-awaitable-expressions) section of the [C# language specification](~/_csharpstandard/standard/README.md).
28+
The operand of the `await` operator is usually of one of the following .NET types: <xref:System.Threading.Tasks.Task>, <xref:System.Threading.Tasks.Task%601>, <xref:System.Threading.Tasks.ValueTask>, or <xref:System.Threading.Tasks.ValueTask%601>. However, any awaitable expression can be the operand of the `await` operator. For more information, see the [Awaitable expressions](~/_csharpstandard/standard/expressions.md#12992-awaitable-expressions) section of the [C# language specification](~/_csharpstandard/standard/README.md).
2929

3030
The type of expression `await t` is `TResult` if the type of expression `t` is <xref:System.Threading.Tasks.Task%601> or <xref:System.Threading.Tasks.ValueTask%601>. If the type of `t` is <xref:System.Threading.Tasks.Task> or <xref:System.Threading.Tasks.ValueTask>, the type of `await t` is `void`. In both cases, if `t` throws an exception, `await t` rethrows the exception.
3131

@@ -41,7 +41,7 @@ The [`Main` method](../../fundamentals/program-structure/main-command-line.md),
4141

4242
## C# language specification
4343

44-
For more information, see the [Await expressions](~/_csharpstandard/standard/expressions.md#1298-await-expressions) section of the [C# language specification](~/_csharpstandard/standard/README.md).
44+
For more information, see the [Await expressions](~/_csharpstandard/standard/expressions.md#1299-await-expressions) section of the [C# language specification](~/_csharpstandard/standard/README.md).
4545

4646
## See also
4747

0 commit comments

Comments
 (0)