Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up code with NET8_0_OR_GREATER #109507

Merged
merged 6 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

#if NET8_0_OR_GREATER
#if NET
using static System.ArgumentNullException;
using static System.ArgumentOutOfRangeException;
karakasa marked this conversation as resolved.
Show resolved Hide resolved
#else
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ internal static void ThrowIndexArgumentOutOfRange() =>
internal static void ThrowVersionCheckFailed() =>
throw new InvalidOperationException(SR.InvalidOperation_EnumFailedVersion);

#if !NET8_0_OR_GREATER
#if !NET
/// <summary>Throws an <see cref="ArgumentNullException"/> if <paramref name="argument"/> is null.</summary>
/// <param name="argument">The reference type argument to validate as non-null.</param>
/// <param name="paramName">The name of the parameter with which <paramref name="argument"/> corresponds.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,20 +53,16 @@ public ZLibException(string? message, Exception? innerException) : base(message,
/// </summary>
/// <param name="info">The SerializationInfo that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The StreamingContext that contains contextual information about the source or destination.</param>
#if NET8_0_OR_GREATER
eiriktsarpalis marked this conversation as resolved.
Show resolved Hide resolved
[Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
[EditorBrowsable(EditorBrowsableState.Never)]
#endif
protected ZLibException(SerializationInfo info, StreamingContext context) : base(info, context)
{
_zlibErrorContext = info.GetString("zlibErrorContext");
_zlibErrorCode = (ZLibNative.ErrorCode)info.GetInt32("zlibErrorCode");
_zlibErrorMessage = info.GetString("zlibErrorMessage");
}

#if NET8_0_OR_GREATER
[Obsolete(Obsoletions.LegacyFormatterImplMessage, DiagnosticId = Obsoletions.LegacyFormatterImplDiagId, UrlFormat = Obsoletions.SharedUrlFormat)]
#endif
void ISerializable.GetObjectData(SerializationInfo si, StreamingContext context)
{
base.GetObjectData(si, context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,7 @@

public ICollectionDebugView(ICollection<T> collection)
{
karakasa marked this conversation as resolved.
Show resolved Hide resolved
#if NET8_0_OR_GREATER
ArgumentNullException.ThrowIfNull(collection);

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_Interpreter_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build linux-x64 debug Libraries_AllConfigurations)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm checked CoreCLR_ReleaseLibraries)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 checked CoreCLR_ReleaseLibraries)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug CoreCLR_Libraries)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Libraries_CheckedCoreCLR)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug Libraries_CheckedCoreCLR)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 checked CoreCLR_ReleaseLibraries)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_EAT)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug CoreCLR_Libraries)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Libraries_CheckedCoreCLR)

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 14 in src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs

View check run for this annotation

Azure Pipelines / runtime

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs#L14

src/libraries/System.Private.CoreLib/src/System/Collections/Generic/ICollectionDebugView.cs(14,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'
#else
if (collection is null)
{
throw new ArgumentNullException(nameof(collection));
}
#endif

_collection = collection;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,7 @@
{
internal static void ValidateCopyToArguments(int sourceCount, Array array, int index)
{
#if NET8_0_OR_GREATER
ArgumentNullException.ThrowIfNull(array);

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_Interpreter_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build linux-x64 debug Libraries_AllConfigurations)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build linux-x64 debug Libraries_AllConfigurations)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm checked CoreCLR_ReleaseLibraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 checked CoreCLR_ReleaseLibraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug CoreCLR_Libraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Libraries_CheckedCoreCLR)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug Libraries_CheckedCoreCLR)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 checked CoreCLR_ReleaseLibraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_EAT)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug CoreCLR_Libraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Libraries_CheckedCoreCLR)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'

Check failure on line 12 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L12

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(12,35): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentNullException' does not contain a definition for 'ThrowIfNull'
#else
if (array is null)
{
throw new ArgumentNullException(nameof(array));
}
#endif

if (array.Rank != 1)
{
throw new ArgumentException(SR.Arg_RankMultiDimNotSupported, nameof(array));
Expand All @@ -28,15 +20,8 @@
throw new ArgumentException(SR.Arg_NonZeroLowerBound, nameof(array));
}

#if NET8_0_OR_GREATER
ArgumentOutOfRangeException.ThrowIfNegative(index);

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_Interpreter_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build linux-x64 debug Libraries_AllConfigurations)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm checked CoreCLR_ReleaseLibraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 checked CoreCLR_ReleaseLibraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug CoreCLR_Libraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Libraries_CheckedCoreCLR)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug Libraries_CheckedCoreCLR)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 checked CoreCLR_ReleaseLibraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_EAT)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug CoreCLR_Libraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Libraries_CheckedCoreCLR)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'

Check failure on line 23 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L23

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(23,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfNegative'
ArgumentOutOfRangeException.ThrowIfGreaterThan(index, array.Length);

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_Interpreter_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Mono_MiniJIT_LibrariesTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop (Build linux-x64 debug Libraries_AllConfigurations)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm checked CoreCLR_ReleaseLibraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug CoreCLR_Libraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-arm64 checked CoreCLR_ReleaseLibraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 Debug CoreCLR_Libraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-arm64 Debug Libraries_CheckedCoreCLR)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux_musl-x64 Debug Libraries_CheckedCoreCLR)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build linux-x64 checked CoreCLR_ReleaseLibraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build browser-wasm linux Release LibraryTests_EAT)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime-dev-innerloop

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug CoreCLR_Libraries)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime (Build osx-x64 Debug Libraries_CheckedCoreCLR)

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'

Check failure on line 24 in src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs

View check run for this annotation

Azure Pipelines / runtime

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs#L24

src/libraries/System.Private.CoreLib/src/System/Collections/ObjectModel/CollectionHelpers.cs(24,41): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'ArgumentOutOfRangeException' does not contain a definition for 'ThrowIfGreaterThan'
#else
if (index < 0 || index > array.Length)
{
throw new ArgumentOutOfRangeException(nameof(index));
}
#endif

if (array.Length - index < sourceCount)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@ public static bool ParticipatesInCaseConversion(ReadOnlySpan<char> s)
/// <summary>Gets whether the specified span contains only ASCII.</summary>
public static bool IsAscii(ReadOnlySpan<char> s)
{
#if NET8_0_OR_GREATER
#if NET
return Ascii.IsValid(s);
#else
foreach (char c in s)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1938,7 +1938,7 @@ internal static int MapCaptureNumber(int capnum, Hashtable? caps) =>
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, Q, S, 0, 0, 0
];

#if NET8_0_OR_GREATER
#if NET
private static readonly SearchValues<char> s_metachars =
SearchValues.Create("\t\n\f\r #$()*+.?[\\^{|");

Expand Down
Loading