Skip to content

Commit 37c1c12

Browse files
committed
Update relevant links
Update links to the new anonymous types article, or both the tuples and anonymous types article.
1 parent 7fd4661 commit 37c1c12

22 files changed

+26
-27
lines changed

docs/core/diagnostics/diagnosticsource-diagnosticlistener.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ A typical call site will look like:
6666
:::code language="csharp" source="snippets/diagnosticsource/csharp/Program.cs" id="Snippet3":::
6767

6868
Every event has a `string` name (for example, `RequestStart`), and exactly one `object` as a payload.
69-
If you need to send more than one item, you can do so by creating an `object` with properties to represent all its information. C#'s [anonymous type](../../csharp/fundamentals/types/tuples.md)
69+
If you need to send more than one item, you can do so by creating an `object` with properties to represent all its information. C#'s [anonymous type](../../csharp/programming-guide/classes-and-structs/anonymous-types.md)
7070
feature is typically used to create a type to pass 'on the fly', and makes this scheme very
7171
convenient. At the instrumentation site, you must guard the call to `Write()` with an `IsEnabled()` check on
7272
the same event name. Without this check, even when the instrumentation is inactive, the rules

docs/csharp/language-reference/keywords/select-clause.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ At compile time, the `select` clause is translated to a method call to the <xref
3434
- [Query Keywords (LINQ)](query-keywords.md)
3535
- [from clause](from-clause.md)
3636
- [partial (Method) (C# Reference)](partial-member.md)
37-
- [Anonymous Types](../../fundamentals/types/tuples.md)
37+
- [Anonymous Types](../../programming-guide/classes-and-structs/anonymous-types.md)
3838
- [LINQ in C#](../../linq/index.md)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ For more information about arrays, see [Arrays](../builtin-types/arrays.md).
4747

4848
## Instantiation of anonymous types
4949

50-
To create an instance of an [anonymous type](../../fundamentals/types/tuples.md), use the `new` operator and object initializer syntax:
50+
To create an instance of an [anonymous type](../../programming-guide/classes-and-structs/anonymous-types.md), use the `new` operator and object initializer syntax:
5151

5252
:::code language="csharp" source="snippets/shared/NewOperator.cs" id="AnonymousType":::
5353

docs/csharp/language-reference/operators/with-expression.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ A `with` expression creates a copy of its operand with the specified properties
99

1010
:::code language="csharp" source="snippets/with-expression/BasicExample.cs" :::
1111

12-
The left-hand operand of a `with` expression can be a [record type](../builtin-types/record.md). It can also be a [structure type](../builtin-types/struct.md) or an [anonymous type](../../fundamentals/types/tuples.md).
12+
The left-hand operand of a `with` expression can be a [record type](../builtin-types/record.md). It can also be a [structure type](../builtin-types/struct.md), [tuple](../builtin-types/value-tuples.md), or an [anonymous type](../../programming-guide/classes-and-structs/anonymous-types.md).
1313

1414
[!INCLUDE[csharp-version-note](../includes/initial-version.md)]
1515

docs/csharp/language-reference/statements/declarations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ List<int> xs = new();
5858
List<int>? ys = new();
5959
```
6060

61-
When you work with [anonymous types](../../fundamentals/types/tuples.md), you must use implicitly typed local variables. The following example shows a [query expression](../keywords/query-keywords.md) that uses an anonymous type to hold a customer's name and phone number:
61+
When you work with [anonymous types](../../programming-guide/classes-and-structs/anonymous-types.md), you must use implicitly typed local variables. The following example shows a [query expression](../keywords/query-keywords.md) that uses an anonymous type to hold a customer's name and phone number:
6262

6363
:::code language="csharp" source="snippets/declarations/ImplicitlyTyped.cs" id="VarExample":::
6464

docs/csharp/linq/get-started/features-that-support-linq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ For more information, see:
6464

6565
## Anonymous types
6666

67-
The compiler constructs an [anonymous type](../../fundamentals/types/tuples.md). Only the compiler can access the type name. Anonymous types provide a convenient way to group a set of properties temporarily in a query result without having to define a separate named type. You initialize anonymous types with a new expression and an object initializer, as shown here:
67+
The compiler constructs an [anonymous type](../../programming-guide/classes-and-structs/anonymous-types.md). Only the compiler can access the type name. Anonymous types provide a convenient way to group a set of properties temporarily in a query result without having to define a separate named type. You initialize anonymous types with a new expression and an object initializer, as shown here:
6868

6969
```csharp
7070
select new {name = cust.Name, phone = cust.Phone};

docs/csharp/linq/standard-query-operators/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,4 +107,4 @@ Although you can use an `orderby` clause with one or more of the source sequence
107107
- [select clause](../../language-reference/keywords/select-clause.md)
108108
- [Extension members](../../programming-guide/classes-and-structs/extension-methods.md)
109109
- [Query Keywords (LINQ)](../../language-reference/keywords/query-keywords.md)
110-
- [Anonymous Types](../../fundamentals/types/tuples.md)
110+
- [Anonymous Types](../../programming-guide/classes-and-structs/anonymous-types.md)

docs/csharp/linq/standard-query-operators/join-operations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ The equivalent query using method syntax is shown in the following code:
173173

174174
- <xref:System.Linq.Enumerable.Join*>
175175
- <xref:System.Linq.Enumerable.GroupJoin*>
176-
- [Anonymous types](../../fundamentals/types/tuples.md)
176+
- [Anonymous types](../../programming-guide/classes-and-structs/anonymous-types.md)
177177
- [Formulate Joins and Cross-Product Queries](../../../framework/data/adonet/sql/linq/formulate-joins-and-cross-product-queries.md)
178178
- [join clause](../../language-reference/keywords/join-clause.md)
179179
- [group clause](../../language-reference/keywords/group-clause.md)

docs/csharp/misc/cs0746.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ public class C
4343

4444
## See also
4545

46-
- [Anonymous Types](../fundamentals/types/tuples.md)
46+
- [Anonymous Types](../programming-guide/classes-and-structs/anonymous-types.md)

docs/csharp/misc/cs0833.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ public class C
3838

3939
## See also
4040

41-
- [Anonymous Types](../fundamentals/types/tuples.md)
41+
- [Anonymous Types](../programming-guide/classes-and-structs/anonymous-types.md)

0 commit comments

Comments
 (0)