Прочитај на енглеском Уреди

Делите путем


ImmutableCollectionsMarshal 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 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)