CollectionsMarshal Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An unsafe class that provides a set of methods to access the underlying data representations of collections.
public ref class CollectionsMarshal abstract sealed
public static class CollectionsMarshal
type CollectionsMarshal = class
Public Class CollectionsMarshal
- Inheritance
-
CollectionsMarshal
Methods
AsSpan<T>(List<T>) |
Gets a Span<T> view over the data in a list. Items should not be added or removed from the List<T> while the Span<T> is in use. |
GetValueRefOrAddDefault<TKey,TValue,TAlternateKey>(Dictionary<TKey,TValue>.AlternateLookup<TAlternateKey>, TAlternateKey, Boolean) | |
GetValueRefOrAddDefault<TKey,TValue>(Dictionary<TKey,TValue>, TKey, Boolean) |
Gets a reference to a |
GetValueRefOrNullRef<TKey,TValue,TAlternateKey>(Dictionary<TKey,TValue>.AlternateLookup<TAlternateKey>, TAlternateKey) | |
GetValueRefOrNullRef<TKey,TValue>(Dictionary<TKey,TValue>, TKey) |
Gets either a reference to a |
SetCount<T>(List<T>, Int32) |
Sets the count of the List<T> to the specified value. |
Applies to
Обратна връзка
https://aka.ms/ContentUserFeedback.
Очаквайте скоро: През цялата 2024 г. постепенно ще отстраняваме проблемите в GitHub като механизъм за обратна връзка за съдържание и ще го заменим с нова система за обратна връзка. За повече информация вижте:Подаване и преглед на обратна връзка за