60 references to AsImmutableArray
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 (11)
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 (1)
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.Test.Utilities (1)
TestHelpers.cs (1)
164return ImmutableCollectionsMarshal.AsImmutableArray(bytes);
Microsoft.CodeAnalysis.Workspaces (15)
FindSymbols\SyntaxTree\SyntaxTreeIndex_Persistence.cs (1)
93ImmutableCollectionsMarshal.AsImmutableArray(reader.ReadByteArray()),
Serialization\SerializableSourceText.cs (2)
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 (1)
103=> ImmutableCollectionsMarshal.AsImmutableArray(MoveToArray());
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker.cs (1)
325var documentStates = ImmutableCollectionsMarshal.AsImmutableArray(chunk);
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
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 (1)
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 (6)
System\Reflection\Metadata\AssemblyNameInfo.cs (1)
64: Runtime.InteropServices.ImmutableCollectionsMarshal.AsImmutableArray(parts._publicKeyOrToken);
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));