10 references to AsArray
Microsoft.CodeAnalysis.CodeStyle (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (1)
53
Array.Copy(ImmutableCollectionsMarshal.
AsArray
(values)!, 0, _values, _index, values.Length);
Microsoft.CodeAnalysis.Workspaces (6)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (1)
48
writer.WriteByteArray(ImmutableCollectionsMarshal.
AsArray
(interceptsLocationData.ContentHash)!);
Serialization\SerializableSourceText.cs (1)
166
writer.WriteByteArray(ImmutableCollectionsMarshal.
AsArray
(_text.GetContentHash())!);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (1)
53
Array.Copy(ImmutableCollectionsMarshal.
AsArray
(values)!, 0, _values, _index, values.Length);
Workspace\Solution\Checksum_Factory.cs (2)
126
var hashes = ImmutableCollectionsMarshal.
AsArray
(checksums).AsSpan();
133
var source = ImmutableCollectionsMarshal.
AsArray
(bytes).AsSpan();
Workspace\Solution\StateChecksums.cs (1)
578
ImmutableCollectionsMarshal.
AsArray
(references)!, serializer, cancellationToken);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (1)
53
Array.Copy(ImmutableCollectionsMarshal.
AsArray
(values)!, 0, _values, _index, values.Length);
System.Reflection.Metadata (2)
System\Reflection\Internal\MemoryBlocks\ByteArrayMemoryProvider.cs (1)
49
var newPinned = new PinnedObject(ImmutableCollectionsMarshal.
AsArray
(_array)!);
System\Reflection\Metadata\AssemblyNameInfo.cs (1)
121
!PublicKeyOrToken.IsDefault ? Runtime.InteropServices.ImmutableCollectionsMarshal.
AsArray
(PublicKeyOrToken) : null;