20 references to IsDefault
Microsoft.CodeAnalysis (9)
src\Dependencies\Collections\RoslynImmutableInterlocked.cs (1)
135
return InterlockedCompareExchange(ref location, value, default(ImmutableSegmentedList<T>)).
IsDefault
;
src\Dependencies\Collections\Segmented\ImmutableSegmentedList`1+ValueBuilder.cs (1)
77
if (originalList.
IsDefault
)
src\Dependencies\Collections\Segmented\ImmutableSegmentedListExtensions.cs (5)
19
if (immutableList.
IsDefault
)
35
if (immutableList.
IsDefault
)
51
if (immutableList.
IsDefault
)
88
if (immutableList.
IsDefault
)
105
if (immutableList.
IsDefault
)
src\Dependencies\Collections\Segmented\SegmentedCollectionsMarshal.cs (2)
112
/// will be uninitialized (i.e. its <see cref="ImmutableSegmentedList{T}.
IsDefault
"/> property will be
132
/// If <paramref name="list"/> is uninitialized (i.e. its <see cref="ImmutableSegmentedList{T}.
IsDefault
"/> property is
Microsoft.CodeAnalysis.UnitTests (11)
Collections\SegmentedCollectionsMarshalTests.cs (11)
407
Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList<int>(null).
IsDefault
);
408
Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList<int?>(null).
IsDefault
);
409
Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList<Guid>(null).
IsDefault
);
410
Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList<Guid?>(null).
IsDefault
);
411
Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList<string>(null).
IsDefault
);
412
Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList<CustomClass>(null).
IsDefault
);
413
Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList<ManagedCustomStruct>(null).
IsDefault
);
414
Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList<ManagedCustomStruct?>(null).
IsDefault
);
415
Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList<UnmanagedCustomStruct>(null).
IsDefault
);
416
Assert.True(SegmentedCollectionsMarshal.AsImmutableSegmentedList<UnmanagedCustomStruct?>(null).
IsDefault
);
442
Assert.False(immutableList.
IsDefault
);