13 references to AsSegmentedDictionary
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (1)
55/// <inheritdoc cref="SegmentedCollectionsMarshal.AsSegmentedDictionary{TKey, TValue}(ImmutableSegmentedDictionary{TKey, TValue})"/>
Microsoft.CodeAnalysis.UnitTests (12)
Collections\SegmentedCollectionsMarshalTests.cs (12)
728Assert.Null(SegmentedCollectionsMarshal.AsSegmentedDictionary<int, int>(default)); 729Assert.Null(SegmentedCollectionsMarshal.AsSegmentedDictionary<int, int?>(default)); 730Assert.Null(SegmentedCollectionsMarshal.AsSegmentedDictionary<Guid, Guid>(default)); 731Assert.Null(SegmentedCollectionsMarshal.AsSegmentedDictionary<Guid, Guid?>(default)); 732Assert.Null(SegmentedCollectionsMarshal.AsSegmentedDictionary<string, string>(default)); 733Assert.Null(SegmentedCollectionsMarshal.AsSegmentedDictionary<CustomClass, CustomClass>(default)); 734Assert.Null(SegmentedCollectionsMarshal.AsSegmentedDictionary<ManagedCustomStruct, ManagedCustomStruct>(default)); 735Assert.Null(SegmentedCollectionsMarshal.AsSegmentedDictionary<ManagedCustomStruct, ManagedCustomStruct?>(default)); 736Assert.Null(SegmentedCollectionsMarshal.AsSegmentedDictionary<UnmanagedCustomStruct, UnmanagedCustomStruct>(default)); 737Assert.Null(SegmentedCollectionsMarshal.AsSegmentedDictionary<UnmanagedCustomStruct, UnmanagedCustomStruct?>(default)); 745SegmentedDictionary<int, T>? dictionary = SegmentedCollectionsMarshal.AsSegmentedDictionary(ImmutableSegmentedDictionary<int, T>.Empty); 769SegmentedDictionary<int, T>? dictionary = SegmentedCollectionsMarshal.AsSegmentedDictionary(immutableDictionary);