Skip to content

Commit

Permalink
'new' keyword disambiguation page (#39370)
Browse files Browse the repository at this point in the history
* Add 'new' keyword to the keywords page

* List all the 'new' keyword usages in 'new' page

* Remove redirection from new.md
  • Loading branch information
BartoszKlonowski committed Feb 2, 2024
1 parent 6f2f2af commit 830c468
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 5 deletions.
4 changes: 0 additions & 4 deletions .openpublishing.redirection.csharp.json
Original file line number Diff line number Diff line change
Expand Up @@ -891,10 +891,6 @@
"source_path_from_root": "/docs/csharp/language-reference/keywords/new-operator.md",
"redirect_url": "/dotnet/csharp/language-reference/operators/new-operator"
},
{
"source_path_from_root": "/docs/csharp/language-reference/keywords/new.md",
"redirect_url": "/dotnet/csharp/language-reference/operators/new-operator"
},
{
"source_path_from_root": "/docs/csharp/language-reference/keywords/object.md",
"redirect_url": "/dotnet/csharp/language-reference/builtin-types/reference-types"
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/language-reference/keywords/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ The first table in this article lists keywords that are reserved identifiers in
:::column-end:::
:::column:::
[`namespace`](namespace.md)
[`new`](../operators/new-operator.md)
[`new`](new.md)
[`null`](null.md)
[`object`](../builtin-types/reference-types.md)
[`operator`](../operators/operator-overloading.md)
Expand Down
23 changes: 23 additions & 0 deletions docs/csharp/language-reference/keywords/new.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
description: "new - C# Reference"
title: "new - C# Reference"
ms.date: 01/02/2024
f1_keywords:
- "new"
- "new_CSharpKeyword"
helpviewer_keywords:
- "new keyword [C#]"
---

# new (C# Reference)

The `new` keyword is used as:

- [new operator](../operators/new-operator.md)
- [new modifier](new-modifier.md)
- [new constraint](new-constraint.md)

## See also

- [C# Keywords](index.md)
- [C# Reference](../index.md)

0 comments on commit 830c468

Please sign in to comment.