Прочетете на английски Редактиране

Споделяне чрез


ImmutableCollectionsMarshal Class

Definition

An unsafe class that provides a set of methods to access the underlying data representations of immutable collections.

C#
public static class ImmutableCollectionsMarshal
Inheritance
ImmutableCollectionsMarshal

Methods

AsArray<T>(ImmutableArray<T>)

Gets the underlying T array for an input ImmutableArray<T> value.

AsImmutableArray<T>(T[])

Gets an ImmutableArray<T> value wrapping the input T array.

Applies to

Продукт Версии
.NET 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)