10 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.Workspaces (6)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (1)
48writer.WriteByteArray(ImmutableCollectionsMarshal.AsArray(interceptsLocationData.ContentHash)!);
Serialization\SerializableSourceText.cs (1)
166writer.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)
126var hashes = ImmutableCollectionsMarshal.AsArray(checksums).AsSpan(); 133var 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)
49var newPinned = new PinnedObject(ImmutableCollectionsMarshal.AsArray(_array)!);
System\Reflection\Metadata\AssemblyNameInfo.cs (1)
121!PublicKeyOrToken.IsDefault ? Runtime.InteropServices.ImmutableCollectionsMarshal.AsArray(PublicKeyOrToken) : null;