Use ArgumentNullException.ThrowIfNull and ObjectDisposedException.ThrowIf in more...
authorStephen Toub <stoub@microsoft.com>
Fri, 2 Dec 2022 23:19:21 +0000 (18:19 -0500)
committerGitHub <noreply@github.com>
Fri, 2 Dec 2022 23:19:21 +0000 (18:19 -0500)
commit042d3ee8a7f8f5d4c86f1f7814e2a6a8e7bb18b5
tree4571b4b82cfc2efec5b2e9676f501f9d782b3fe1
parentbcc818f2c1f78c6f0d5e6a900f17f2e99b72b75c
Use ArgumentNullException.ThrowIfNull and ObjectDisposedException.ThrowIf in more places (#79096)
56 files changed:
src/coreclr/System.Private.CoreLib/src/System/Threading/Monitor.CoreCLR.cs
src/libraries/Common/src/System/Net/WebSockets/WebSocketValidate.cs
src/libraries/System.Collections.Concurrent/src/Resources/Strings.resx
src/libraries/System.Collections.Concurrent/src/System/Collections/Concurrent/PartitionerStatic.cs
src/libraries/System.ComponentModel.TypeConverter/src/MS/Internal/Xml/Linq/ComponentModel/XComponentModel.cs
src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/Design/ServiceContainer.cs
src/libraries/System.ComponentModel.TypeConverter/src/System/ComponentModel/ReflectPropertyDescriptor.cs
src/libraries/System.Console/src/System/Console.cs
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLBytes.cs
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLChars.cs
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SQLDecimal.cs
src/libraries/System.Data.Common/src/System/Data/SQLTypes/SqlXml.cs
src/libraries/System.Diagnostics.TraceSource/src/System/Diagnostics/SourceFilter.cs
src/libraries/System.Diagnostics.TraceSource/src/System/Diagnostics/SwitchAttribute.cs
src/libraries/System.Diagnostics.TraceSource/src/System/Diagnostics/SwitchLevelAttribute.cs
src/libraries/System.Diagnostics.TraceSource/src/System/Diagnostics/TraceSource.cs
src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.AnyMobile.cs
src/libraries/System.Net.Http/src/System/Net/Http/HttpClientHandler.cs
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/CreditManager.cs
src/libraries/System.Net.WebSockets/src/System/Net/WebSockets/ManagedWebSocket.cs
src/libraries/System.Private.CoreLib/src/Resources/Strings.resx
src/libraries/System.Private.CoreLib/src/System.Private.CoreLib.Shared.projitems
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/DiagnosticCounter.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/EventSource.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/IncrementingPollingCounter.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/PollingCounter.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/TraceLogging/EventPayload.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/TraceLogging/TraceLoggingEventTypes.cs
src/libraries/System.Private.CoreLib/src/System/Diagnostics/Tracing/TraceLogging/TraceLoggingTypeInfo.cs
src/libraries/System.Private.CoreLib/src/System/Globalization/TimeSpanParse.cs
src/libraries/System.Private.CoreLib/src/System/Resources/ResourceReader.cs
src/libraries/System.Private.CoreLib/src/System/Resources/RuntimeResourceSet.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/CompilerServices/TypeForwardedFromAttribute.cs
src/libraries/System.Private.CoreLib/src/System/Runtime/InteropServices/SafeHandle.cs
src/libraries/System.Private.CoreLib/src/System/Threading/DeferredDisposableLifetime.cs
src/libraries/System.Private.CoreLib/src/System/Threading/ManualResetEventSlim.cs
src/libraries/System.Private.CoreLib/src/System/Threading/ReaderWriterLockSlim.cs
src/libraries/System.Private.CoreLib/src/System/Threading/SemaphoreSlim.cs
src/libraries/System.Private.CoreLib/src/System/Threading/ThreadLocal.cs
src/libraries/System.Private.CoreLib/src/System/Threading/ThreadPoolBoundHandle.cs
src/libraries/System.Private.CoreLib/src/System/Threading/Timer.cs
src/libraries/System.Private.CoreLib/src/System/Threading/WaitHandle.cs
src/libraries/System.Private.Xml/src/System/Xml/Serialization/XmlSerializationReader.cs
src/libraries/System.Runtime/tests/System/Runtime/CompilerServices/AttributesTests.cs
src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/ACE.cs
src/libraries/System.Security.AccessControl/src/System/Security/AccessControl/ACL.cs
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/CngAlgorithmCore.cs
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/CryptoStream.cs
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/DSACng.cs
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/ECDiffieHellmanCng.cs
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/ECDsaCng.cs
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSABCrypt.cs
src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/RSACng.cs
src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxDependentTransaction.cs
src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxTransaction.cs
src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxTransactionManager.cs