You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
342 B
11 lines
342 B
using System.Collections.Immutable;
|
|
using System.Runtime.CompilerServices;
|
|
|
|
#if !SUPPORTS_IMMUTABLE_COLLECTIONS_MARSHAL
|
|
namespace System.Runtime.InteropServices;
|
|
|
|
internal static class ImmutableCollectionsMarshal
|
|
{
|
|
public static ImmutableArray<T> AsImmutableArray<T>(T[] array) => Unsafe.As<T[], ImmutableArray<T>>(ref array);
|
|
}
|
|
#endif
|