Skip to content
Merged
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
6 changes: 3 additions & 3 deletions docs/csharp/language-reference/keywords/string.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ author: "BillWagner"
ms.author: "wiwagn"
---
# string (C# Reference)
The `string` type represents a sequence of zero or more Unicode characters. `string` is an alias for <xref:System.String> in the .NET Framework.
The `string` type represents a sequence of zero or more Unicode characters. `string` is an alias for <xref:System.String> in .NET.

Although `string` is a reference type, the equality operators (`==` and `!=`) are defined to compare the values of `string` objects, not references. This makes testing for string equality more intuitive. For example:

Expand Down Expand Up @@ -72,7 +72,7 @@ Console.WriteLine(a);
> [!NOTE]
> The escape code `\udddd` (where `dddd` is a four-digit number) represents the Unicode character U+`dddd`. Eight-digit Unicode escape codes are also recognized: `\Udddddddd`.

Verbatim string literals start with @ and are also enclosed in double quotation marks. For example:
Verbatim string literals start with `@` and are also enclosed in double quotation marks. For example:

```csharp
@"good morning" // a string literal
Expand All @@ -90,7 +90,7 @@ Console.WriteLine(a);
@"""Ahoy!"" cried the captain." // "Ahoy!" cried the captain.
```

Another use of the @ symbol is to use referenced ([/reference](../../../csharp/language-reference/compiler-options/reference-compiler-option.md)) identifiers that are C# keywords.
For other uses of the `@` special character, see [@ -- verbatim identifier](../tokens/verbatim.md).

For more information about strings in C#, see [Strings](../../../csharp/programming-guide/strings/index.md).

Expand Down