Replace default(T) != null with typeof(T).IsValueType (#32098)
authorLevi Broderick <GrabYourPitchforks@users.noreply.github.com>
Wed, 12 Feb 2020 02:34:58 +0000 (18:34 -0800)
committerGitHub <noreply@github.com>
Wed, 12 Feb 2020 02:34:58 +0000 (18:34 -0800)
commitfff8f5ab763f3c1eea95ab201bfde9bd4b6e62fb
tree27ef9859ee120ecd6194a505ab9914e12007acf7
parent9082716c105537346bd2d146d84aab671558db36
Replace default(T) != null with typeof(T).IsValueType (#32098)

Only affects call sites which weren't intending to special-case Nullable<T>
src/libraries/System.Collections.Concurrent/src/System/Collections/Concurrent/PartitionerStatic.cs
src/libraries/System.Collections.Immutable/src/System/Collections/Immutable/ImmutableExtensions.cs
src/libraries/System.Collections/src/System/Collections/Generic/HashSet.cs
src/libraries/System.Linq.Parallel/src/System/Linq/Parallel/Scheduling/Scheduling.cs
src/libraries/System.Private.CoreLib/src/System/Collections/Generic/Dictionary.cs
src/libraries/System.Private.CoreLib/src/System/Memory.cs
src/libraries/System.Private.CoreLib/src/System/MemoryExtensions.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/RuntimeHelpers.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/MemoryMarshal.cs
src/libraries/System.Private.CoreLib/src/System/Span.cs