Skip to content
Merged
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
4 changes: 4 additions & 0 deletions .openpublishing.redirection.standard.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@
"source_path_from_root": "/docs/standard/base-types/backtracking.md",
"redirect_url": "/dotnet/standard/base-types/backtracking-in-regular-expressions"
},
{
"source_path_from_root": "/docs/standard/base-types/basic-string-operations.md",
"redirect_url": "/dotnet/standard/base-types/creating-new"
},
{
"source_path_from_root": "/docs/standard/base-types/best-practices.md",
"redirect_url": "/dotnet/standard/base-types/best-practices-regex"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: "Built-in reference types"
description: "Learn about reference types that have C# keywords you can use to declare them."
ms.date: 10/07/2025
f1_keywords:
f1_keywords:
- "object_CSharpKeyword"
- "object"
- "delegate_CSharpKeyword"
Expand All @@ -11,7 +11,7 @@ f1_keywords:
- "string"
- "string_CSharpKeyword"
- "Utf8StringLiteral_CSharpKeyword"
helpviewer_keywords:
helpviewer_keywords:
- "object keyword [C#]"
- "delegate keyword [C#]"
- "function pointers [C#]"
Expand Down Expand Up @@ -221,7 +221,7 @@ Delegate combination or removal fails with a runtime exception when the delegate
```csharp
Action<string> stringAction = str => {};
Action<object> objectAction = obj => {};

// Valid due to implicit reference conversion of
// objectAction to Action<string>, but might fail
// at run time.
Expand All @@ -233,7 +233,7 @@ You can create a delegate with the correct runtime type by creating a new delega
```csharp
Action<string> stringAction = str => {};
Action<object> objectAction = obj => {};

// Creates a new delegate instance with a runtime type of Action<string>.
Action<string> wrappedObjectAction = new Action<string>(objectAction);

Expand Down Expand Up @@ -290,7 +290,6 @@ For more information, see the following sections of the [C# language specificati
- [Events](../../programming-guide/events/index.md)
- [Using Type dynamic](../../advanced-topics/interop/using-type-dynamic.md)
- [Best Practices for Using Strings](../../../standard/base-types/best-practices-strings.md)
- [Basic String Operations](../../../standard/base-types/basic-string-operations.md)
- [Creating New Strings](../../../standard/base-types/creating-new.md)
- [Type-testing and cast operators](../operators/type-testing-and-cast.md)
- [How to safely cast using pattern matching and the as and is operators](../../fundamentals/tutorials/safely-cast-using-pattern-matching-is-and-as-operators.md)
Expand Down
2 changes: 1 addition & 1 deletion docs/csharp/programming-guide/strings/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ Because the <xref:System.String> type implements <xref:System.Collections.Generi
- [How to search strings](../../how-to/search-strings.md): Explains how to use search for specific text or patterns in strings.
- [How to determine whether a string represents a numeric value](./how-to-determine-whether-a-string-represents-a-numeric-value.md): Shows how to safely parse a string to see whether it has a valid numeric value.
- [String interpolation](../../language-reference/tokens/interpolated.md): Describes the string interpolation feature that provides a convenient syntax to format strings.
- [Basic String Operations](../../../standard/base-types/basic-string-operations.md): Provides links to articles that use <xref:System.String?displayProperty=nameWithType> and <xref:System.Text.StringBuilder?displayProperty=nameWithType> methods to perform basic string operations.
- [Using the StringBuilder class in .NET](../../../standard/base-types/stringbuilder.md)
- [Parsing Strings](../../../standard/base-types/parsing-strings.md): Describes how to convert string representations of .NET base types to instances of the corresponding types.
- [Parsing Date and Time Strings in .NET](../../../standard/base-types/parsing-datetime.md): Shows how to convert a string such as "01/24/2008" to a <xref:System.DateTime?displayProperty=nameWithType> object.
- [Comparing Strings](../../../standard/base-types/comparing.md): Includes information about how to compare strings and provides examples in C# and Visual Basic.
Expand Down
4 changes: 1 addition & 3 deletions docs/fundamentals/toc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -617,10 +617,8 @@ items:
href: ../standard/base-types/string-comparison-net-5-plus.md
- name: Basic string operations
items:
- name: Overview
href: ../standard/base-types/basic-string-operations.md
displayName: string operations
- name: Create new strings
displayName: string operations
href: ../standard/base-types/creating-new.md
- name: Trim and remove characters
href: ../standard/base-types/trimming.md
Expand Down
7 changes: 1 addition & 6 deletions docs/standard/base-types/basic-manipulations.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ dev_langs:
- "vb"
helpviewer_keywords:
- "strings [.NET], examples"
ms.assetid: 121d1eae-251b-44c0-8818-57da04b8215e
---
# How to: Perform Basic String Manipulations in .NET

The following example uses some of the methods discussed in the [Basic String Operations](basic-string-operations.md) topics to construct a class that performs string manipulations in a manner that might be found in a real-world application. The `MailToData` class stores the name and address of an individual in separate properties and provides a way to combine the `City`, `State`, and `Zip` fields into a single string for display to the user. Furthermore, the class allows the user to enter the city, state, and zip code information as a single string. The application automatically parses the single string and enters the proper information into the corresponding property.
The following example constructs a class that performs string manipulations in a manner that might be found in a real-world application. The `MailToData` class stores the name and address of an individual in separate properties and provides a way to combine the `City`, `State`, and `Zip` fields into a single string for display to the user. Furthermore, the class allows the user to enter the city, state, and zip code information as a single string. The application automatically parses the single string and enters the proper information into the corresponding property.

For simplicity, this example uses a console application with a command-line interface.

Expand All @@ -21,7 +20,3 @@ For simplicity, this example uses a console application with a command-line inte
[!code-vb[Conceptual.String.BasicOps#1](../../../samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.string.basicops/vb/basicops.vb#1)]

When the preceding code is executed, the user is asked to enter their name and address. The application places the information in the appropriate properties and displays the information back to the user, creating a single string that displays the city, state, and zip code information.

## See also

- [Basic String Operations](basic-string-operations.md)
24 changes: 0 additions & 24 deletions docs/standard/base-types/basic-string-operations.md

This file was deleted.

1 change: 0 additions & 1 deletion docs/standard/base-types/changing-case.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,4 @@ Note that although it is culture-sensitive, the <xref:System.Globalization.TextI

## See also

- [Basic String Operations](basic-string-operations.md)
- [Perform culture-insensitive string operations](../../core/extensions/performing-culture-insensitive-string-operations.md)
1 change: 0 additions & 1 deletion docs/standard/base-types/comparing.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ The following example uses the `IndexOf` method to search for the first occurren
## See also

- [Best practices for using strings in .NET](best-practices-strings.md)
- [Basic string operations](basic-string-operations.md)
- [Perform culture-insensitive string operations](../../core/extensions/performing-culture-insensitive-string-operations.md)
- [Sorting weight tables](https://www.microsoft.com/download/details.aspx?id=10921) - used by .NET Framework and .NET Core 1.0-3.1 on Windows
- [Default Unicode collation element table](https://www.unicode.org/Public/UCA/latest/allkeys.txt) - used by .NET 5 on all platforms, and by .NET Core on Linux and macOS
1 change: 0 additions & 1 deletion docs/standard/base-types/creating-new.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,4 @@ helpviewer_keywords:

## See also

- [Basic String Operations](basic-string-operations.md)
- [Composite Formatting](composite-formatting.md)
1 change: 0 additions & 1 deletion docs/standard/base-types/divide-up-strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,5 @@ The following example uses the <xref:System.String.IndexOf%2A> method to find th

## See also

- [Basic string operations in .NET](basic-string-operations.md)
- [.NET regular expressions](regular-expressions.md)
- [How to parse strings using String.Split in C#](../../csharp/how-to/parse-strings-using-split.md)
4 changes: 0 additions & 4 deletions docs/standard/base-types/padding.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,3 @@ Use one of the following <xref:System.String> methods to create a new string tha

[!code-csharp[Conceptual.String.BasicOps#4](../../../samples/snippets/csharp/VS_Snippets_CLR/conceptual.string.basicops/cs/padding.cs#4)]
[!code-vb[Conceptual.String.BasicOps#4](../../../samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.string.basicops/vb/padding.vb#4)]

## See also

- [Basic String Operations](basic-string-operations.md)
1 change: 0 additions & 1 deletion docs/standard/base-types/stringbuilder.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,5 +97,4 @@ The <xref:System.String> object is immutable. Every time you use one of the meth
## See also

- <xref:System.Text.StringBuilder?displayProperty=nameWithType>
- [Basic String Operations](basic-string-operations.md)
- [Formatting Types](formatting-types.md)
4 changes: 0 additions & 4 deletions docs/standard/base-types/trimming.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,3 @@ If you're parsing a sentence into individual words, you might end up with words

[!code-csharp[Conceptual.String.BasicOps#23](../../../samples/snippets/csharp/VS_Snippets_CLR/conceptual.string.basicops/cs/replace1.cs#23)]
[!code-vb[Conceptual.String.BasicOps#23](../../../samples/snippets/visualbasic/VS_Snippets_CLR/conceptual.string.basicops/vb/replace1.vb#23)]

## See also

- [Basic String Operations](basic-string-operations.md)
Loading