mirror of
https://github.com/m-lamonaca/dev-notes.git
synced 2025-05-15 07:34:46 +00:00
Add notes on Span<T>
& Memory<T>
This commit is contained in:
parent
d230d01790
commit
9162c04bc6
2 changed files with 55 additions and 12 deletions
|
@ -218,15 +218,6 @@ public interface IList<T> : ICollection<T>, IEnumerable<T>
|
|||
}
|
||||
```
|
||||
|
||||
## `Span<T>`
|
||||
|
||||
```cs
|
||||
t[] array = {...}
|
||||
Span<T> wholeArraySpan = array;
|
||||
Span<T> slice = array[start..end];
|
||||
ReadOnlySpan<T> slice = array[start..end];
|
||||
```
|
||||
|
||||
## [Dictionaries](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2)
|
||||
|
||||
[ValueCollection](https://docs.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2.valuecollection)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue