6 references to Contains_no_elements
Microsoft.AspNetCore.Razor.Utilities.Shared (6)
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledArrayBuilder`1.cs (3)
871
=> Count > 0 ? this[0] : ThrowInvalidOperation(SR.
Contains_no_elements
);
1071
=> Count > 0 ? this[^1] : ThrowInvalidOperation(SR.
Contains_no_elements
);
1284
0 => ThrowInvalidOperation(SR.
Contains_no_elements
),
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ReadOnlyListExtensions.cs (3)
259
=> list.Count > 0 ? list[0] : ThrowHelper.ThrowInvalidOperationException<T>(SR.
Contains_no_elements
);
482
=> list.Count > 0 ? list[^1] : ThrowHelper.ThrowInvalidOperationException<T>(SR.
Contains_no_elements
);
712
0 => ThrowHelper.ThrowInvalidOperationException<T>(SR.
Contains_no_elements
),