Skip to content

Commit

Permalink
Update docs/csharp/whats-new/csharp-14.md
Browse files Browse the repository at this point in the history
  • Loading branch information
BillWagner committed Feb 14, 2025
1 parent 57a6266 commit 7d1c6a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/csharp/whats-new/csharp-14.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ The [`field`](../language-reference/keywords/field.md) contextual keyword is in

## Implicit span conversions

C# 14 introduces first-class support for <xref:System.Span`1?displayProperty=fullName> and <xref:System.ReadOnlySpan`1?displayProperty=fullName> in the language. This support involves new implicit conversions allowing more natural programming with these integral types.
C# 14 introduces first-class support for <xref:System.Span`1?displayProperty=fullName> and <xref:System.ReadOnlySpan`1?displayProperty=fullName> in the language. This support involves new implicit conversions allowing more natural programming with these types.

`Span<T>` and `ReadOnlySpan<T>` are used in many key ways in C# and the runtime. Their introduction improves performance without risking safety. C# 14 recognizes the relationship and supports some conversions between `ReadOnlySpan<T>`, `Span<T>`, and `T[]`. The span types can be extension method receivers, compose with other conversions, and help with generic type inference scenarios.

Expand Down

0 comments on commit 7d1c6a6

Please sign in to comment.