12 references to AsArray
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (1)
53Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length);
Microsoft.CodeAnalysis.Test.Utilities (2)
Platform\Desktop\Extensions.cs (2)
34info.AddValue(name, value.IsDefault ? null : ImmutableCollectionsMarshal.AsArray(value), typeof(T[])); 48info.AddValue(name, value.IsDefault ? null : ImmutableCollectionsMarshal.AsArray(value), typeof(byte[]));
Microsoft.CodeAnalysis.Workspaces (6)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (1)
48writer.WriteByteArray(ImmutableCollectionsMarshal.AsArray(interceptsLocationData.ContentHash)!);
Serialization\SerializableSourceText.cs (1)
165writer.WriteByteArray(ImmutableCollectionsMarshal.AsArray(_text.GetContentHash())!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (1)
53Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length);
Workspace\Solution\Checksum_Factory.cs (2)
141var hashes = ImmutableCollectionsMarshal.AsArray(checksums).AsSpan(); 148var source = ImmutableCollectionsMarshal.AsArray(bytes).AsSpan();
Workspace\Solution\StateChecksums.cs (1)
578ImmutableCollectionsMarshal.AsArray(references)!, serializer, cancellationToken);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (1)
53Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length);
System.Reflection.Metadata (2)
System\Reflection\Internal\MemoryBlocks\ByteArrayMemoryProvider.cs (1)
43var newPinned = new PinnedObject(ImmutableCollectionsMarshal.AsArray(_array)!);
System\Reflection\Metadata\AssemblyNameInfo.cs (1)
121!PublicKeyOrToken.IsDefault ? Runtime.InteropServices.ImmutableCollectionsMarshal.AsArray(PublicKeyOrToken) : null;