Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove DisallowNull from `ImmutableArrayInterop.DangerousCreateFrom…
…UnderlyingArray`.
  • Loading branch information
teo-tsirpanis committed Oct 27, 2022
commit 85bc2d603c0aa1396eae84e233dc8f7a60cd3fd2
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ internal static unsafe class ImmutableByteArrayInterop
/// whose underlying backing field is modified.
/// </remarks>
/// <returns>An immutable array.</returns>
internal static ImmutableArray<byte> DangerousCreateFromUnderlyingArray([DisallowNull] ref byte[]? array)
internal static ImmutableArray<byte> DangerousCreateFromUnderlyingArray(ref byte[]? array)
{
byte[] givenArray = array;
byte[] givenArray = array!;
array = null;

return Unsafe.As<byte[], ImmutableArray<byte>>(ref givenArray);
Expand Down