22 references to AsImmutableSegmentedDictionary
Microsoft.CodeAnalysis (1)
src\Dependencies\Collections\Segmented\ImmutableSegmentedDictionary`2+PrivateMarshal.cs (1)
51
/// <inheritdoc cref="SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
{TKey, TValue}(SegmentedDictionary{TKey, TValue}?)"/>
Microsoft.CodeAnalysis.UnitTests (21)
Collections\SegmentedCollectionsMarshalTests.cs (21)
669
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
<int, int>(null).IsDefault);
670
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
<int, int?>(null).IsDefault);
671
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
<Guid, Guid>(null).IsDefault);
672
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
<Guid, Guid?>(null).IsDefault);
673
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
<string, string>(null).IsDefault);
674
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
<CustomClass, CustomClass>(null).IsDefault);
675
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
<ManagedCustomStruct, ManagedCustomStruct>(null).IsDefault);
676
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
<ManagedCustomStruct, ManagedCustomStruct?>(null).IsDefault);
677
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
<UnmanagedCustomStruct, UnmanagedCustomStruct>(null).IsDefault);
678
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
<UnmanagedCustomStruct, UnmanagedCustomStruct?>(null).IsDefault);
684
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
(new SegmentedDictionary<int, int>(0)).IsEmpty);
685
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
(new SegmentedDictionary<int, int?>(0)).IsEmpty);
686
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
(new SegmentedDictionary<Guid, Guid>(0)).IsEmpty);
687
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
(new SegmentedDictionary<Guid, Guid?>(0)).IsEmpty);
688
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
(new SegmentedDictionary<string, string>(0)).IsEmpty);
689
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
(new SegmentedDictionary<CustomClass, CustomClass>(0)).IsEmpty);
690
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
(new SegmentedDictionary<ManagedCustomStruct, ManagedCustomStruct>(0)).IsEmpty);
691
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
(new SegmentedDictionary<ManagedCustomStruct, ManagedCustomStruct?>(0)).IsEmpty);
692
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
(new SegmentedDictionary<UnmanagedCustomStruct, UnmanagedCustomStruct>(0)).IsEmpty);
693
Assert.True(SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
(new SegmentedDictionary<UnmanagedCustomStruct, UnmanagedCustomStruct?>(0)).IsEmpty);
702
ImmutableSegmentedDictionary<int, TValue> immutableDictionary = SegmentedCollectionsMarshal.
AsImmutableSegmentedDictionary
(dictionary);