72 references to ImmutableCollectionsMarshal
Microsoft.CodeAnalysis (11)
Collections\ImmutableArrayExtensions.cs (8)
433return ImmutableCollectionsMarshal.AsImmutableArray(builder); 451return ImmutableCollectionsMarshal.AsImmutableArray(builder); 512return ImmutableCollectionsMarshal.AsImmutableArray(builder); 907return ImmutableCollectionsMarshal.AsImmutableArray(builder); 935return ImmutableCollectionsMarshal.AsImmutableArray(builder); 968return ImmutableCollectionsMarshal.AsImmutableArray(builder); 1006return ImmutableCollectionsMarshal.AsImmutableArray(builder); 1039return ImmutableCollectionsMarshal.AsImmutableArray(builder);
InternalUtilities\EnumerableExtensions.cs (2)
397return ImmutableCollectionsMarshal.AsImmutableArray(builder); 413return ImmutableCollectionsMarshal.AsImmutableArray(builder);
Text\CompositeText.cs (1)
459_segmentLineNumbers = ImmutableCollectionsMarshal.AsImmutableArray(segmentLineNumbers);
Microsoft.CodeAnalysis.CodeStyle (12)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (8)
433return ImmutableCollectionsMarshal.AsImmutableArray(builder); 451return ImmutableCollectionsMarshal.AsImmutableArray(builder); 512return ImmutableCollectionsMarshal.AsImmutableArray(builder); 907return ImmutableCollectionsMarshal.AsImmutableArray(builder); 935return ImmutableCollectionsMarshal.AsImmutableArray(builder); 968return ImmutableCollectionsMarshal.AsImmutableArray(builder); 1006return ImmutableCollectionsMarshal.AsImmutableArray(builder); 1039return ImmutableCollectionsMarshal.AsImmutableArray(builder);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
397return ImmutableCollectionsMarshal.AsImmutableArray(builder); 413return ImmutableCollectionsMarshal.AsImmutableArray(builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (2)
53Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length); 103=> ImmutableCollectionsMarshal.AsImmutableArray(MoveToArray());
Microsoft.CodeAnalysis.CSharp (2)
Symbols\AbstractTypeMap.cs (2)
317return result != null ? ImmutableCollectionsMarshal.AsImmutableArray(result) : original; 434return result != null ? ImmutableCollectionsMarshal.AsImmutableArray(result) : original;
Microsoft.CodeAnalysis.Remote.Workspaces (1)
AbstractAssetProvider.cs (1)
69ImmutableCollectionsMarshal.AsImmutableArray(projects),
Microsoft.CodeAnalysis.Test.Utilities (1)
TestHelpers.cs (1)
164return ImmutableCollectionsMarshal.AsImmutableArray(bytes);
Microsoft.CodeAnalysis.Workspaces (22)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (2)
48writer.WriteByteArray(ImmutableCollectionsMarshal.AsArray(interceptsLocationData.ContentHash)!); 93ImmutableCollectionsMarshal.AsImmutableArray(reader.ReadByteArray()),
Serialization\SerializableSourceText.cs (4)
157writer.WriteByteArray(ImmutableCollectionsMarshal.AsArray(_storageHandle.ContentHash)!); 166writer.WriteByteArray(ImmutableCollectionsMarshal.AsArray(_text.GetContentHash())!); 188var contentHash = ImmutableCollectionsMarshal.AsImmutableArray(reader.ReadByteArray()); 197var contentHash = ImmutableCollectionsMarshal.AsImmutableArray(reader.ReadByteArray());
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (8)
433return ImmutableCollectionsMarshal.AsImmutableArray(builder); 451return ImmutableCollectionsMarshal.AsImmutableArray(builder); 512return ImmutableCollectionsMarshal.AsImmutableArray(builder); 907return ImmutableCollectionsMarshal.AsImmutableArray(builder); 935return ImmutableCollectionsMarshal.AsImmutableArray(builder); 968return ImmutableCollectionsMarshal.AsImmutableArray(builder); 1006return ImmutableCollectionsMarshal.AsImmutableArray(builder); 1039return ImmutableCollectionsMarshal.AsImmutableArray(builder);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
397return ImmutableCollectionsMarshal.AsImmutableArray(builder); 413return ImmutableCollectionsMarshal.AsImmutableArray(builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (2)
53Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length); 103=> ImmutableCollectionsMarshal.AsImmutableArray(MoveToArray());
Workspace\Solution\Checksum_Factory.cs (2)
126var hashes = ImmutableCollectionsMarshal.AsArray(checksums).AsSpan(); 133var source = ImmutableCollectionsMarshal.AsArray(bytes).AsSpan();
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
325var documentStates = ImmutableCollectionsMarshal.AsImmutableArray(chunk);
Workspace\Solution\StateChecksums.cs (1)
578ImmutableCollectionsMarshal.AsArray(references)!, serializer, cancellationToken);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (12)
src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs (8)
433return ImmutableCollectionsMarshal.AsImmutableArray(builder); 451return ImmutableCollectionsMarshal.AsImmutableArray(builder); 512return ImmutableCollectionsMarshal.AsImmutableArray(builder); 907return ImmutableCollectionsMarshal.AsImmutableArray(builder); 935return ImmutableCollectionsMarshal.AsImmutableArray(builder); 968return ImmutableCollectionsMarshal.AsImmutableArray(builder); 1006return ImmutableCollectionsMarshal.AsImmutableArray(builder); 1039return ImmutableCollectionsMarshal.AsImmutableArray(builder);
src\Compilers\Core\Portable\InternalUtilities\EnumerableExtensions.cs (2)
397return ImmutableCollectionsMarshal.AsImmutableArray(builder); 413return ImmutableCollectionsMarshal.AsImmutableArray(builder);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\FixedSizeArrayBuilder.cs (2)
53Array.Copy(ImmutableCollectionsMarshal.AsArray(values)!, 0, _values, _index, values.Length); 103=> ImmutableCollectionsMarshal.AsImmutableArray(MoveToArray());
System.Collections.Immutable (3)
System\Collections\Frozen\FrozenDictionary.cs (2)
276public ImmutableArray<TKey> Keys => ImmutableCollectionsMarshal.AsImmutableArray(KeysCore); 298public ImmutableArray<TValue> Values => ImmutableCollectionsMarshal.AsImmutableArray(ValuesCore);
System\Collections\Frozen\FrozenSet.cs (1)
258public ImmutableArray<T> Items => ImmutableCollectionsMarshal.AsImmutableArray(ItemsCore);
System.Reflection.Metadata (8)
System\Reflection\Internal\MemoryBlocks\ByteArrayMemoryProvider.cs (1)
49var newPinned = new PinnedObject(ImmutableCollectionsMarshal.AsArray(_array)!);
System\Reflection\Metadata\AssemblyNameInfo.cs (2)
64: Runtime.InteropServices.ImmutableCollectionsMarshal.AsImmutableArray(parts._publicKeyOrToken); 121!PublicKeyOrToken.IsDefault ? Runtime.InteropServices.ImmutableCollectionsMarshal.AsArray(PublicKeyOrToken) : null;
System\Reflection\Metadata\BlobBuilder.cs (1)
318return ImmutableCollectionsMarshal.AsImmutableArray(array);
System\Reflection\Metadata\IL\MethodBodyBlock.cs (1)
75return ImmutableCollectionsMarshal.AsImmutableArray(bytes);
System\Reflection\Metadata\MetadataReader.cs (2)
555ImmutableCollectionsMarshal.AsImmutableArray(pdbId), 1085return ImmutableCollectionsMarshal.AsImmutableArray(bytes);
System\Reflection\PortableExecutable\PEReader.cs (1)
673ImmutableCollectionsMarshal.AsImmutableArray(checksum));