55 references to CollectionUtilitiesSR
Microsoft.AspNetCore.Razor.Utilities.Shared (55)
src\427269d77cf079ab\Microsoft.AspNetCore.Razor.SharedUtilities.Resources.CollectionUtilitiesSR.cs (1)
10
internal static global::System.Resources.ResourceManager ResourceManager => s_resourceManager ?? (s_resourceManager = new global::System.Resources.ResourceManager(typeof(
CollectionUtilitiesSR
)));
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ArgHelper.cs (2)
10
using SR = Microsoft.AspNetCore.Razor.SharedUtilities.Resources.
CollectionUtilitiesSR
;
186
ThrowHelper.ThrowArgumentException(paramName,
SR
.Destination_is_too_short);
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\Assumed.cs (9)
8
using SR = Microsoft.AspNetCore.Razor.SharedUtilities.Resources.
CollectionUtilitiesSR
;
24
ThrowInvalidOperation(message ??
SR
.FormatExpected_0_to_be_non_null(valueExpression), path, line);
51
ThrowInvalidOperation(message ??
SR
.FormatExpected_0_to_be_non_null(valueExpression), path, line);
76
ThrowInvalidOperation(message ??
SR
.Expected_condition_to_be_false, path, line);
102
ThrowInvalidOperation(message ??
SR
.Expected_condition_to_be_true, path, line);
115
=> ThrowInvalidOperation(message ??
SR
.This_program_location_is_thought_to_be_unreachable, path, line);
137
=> ThrowInvalidOperation<T>(message ??
SR
.This_program_location_is_thought_to_be_unreachable, path, line);
153
=> ThrowHelper.ThrowInvalidOperationException(message + Environment.NewLine +
SR
.FormatFile_0_Line_1(path, line));
158
=> ThrowHelper.ThrowInvalidOperationException<T>(message + Environment.NewLine +
SR
.FormatFile_0_Line_1(path, line));
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ImmutableArrayExtensions.cs (5)
10
using SR = Microsoft.AspNetCore.Razor.SharedUtilities.Resources.
CollectionUtilitiesSR
;
688
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_no_matching_elements);
749
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_no_matching_elements);
846
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_more_than_one_matching_element);
891
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_more_than_one_matching_element);
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\PooledObjects\PooledArrayBuilder`1.cs (19)
12
using SR = Microsoft.AspNetCore.Razor.SharedUtilities.Resources.
CollectionUtilitiesSR
;
871
=> Count > 0 ? this[0] : ThrowInvalidOperation(
SR
.Contains_no_elements);
895
return ThrowInvalidOperation(
SR
.Contains_no_matching_elements);
923
return ThrowInvalidOperation(
SR
.Contains_no_matching_elements);
1071
=> Count > 0 ? this[^1] : ThrowInvalidOperation(
SR
.Contains_no_elements);
1096
return ThrowInvalidOperation(
SR
.Contains_no_matching_elements);
1125
return ThrowInvalidOperation(
SR
.Contains_no_matching_elements);
1284
0 => ThrowInvalidOperation(
SR
.Contains_no_elements),
1285
_ => ThrowInvalidOperation(
SR
.Contains_more_than_one_element)
1316
return ThrowInvalidOperation(
SR
.Contains_more_than_one_matching_element);
1326
return ThrowInvalidOperation(
SR
.Contains_no_matching_elements);
1362
return ThrowInvalidOperation(
SR
.Contains_more_than_one_matching_element);
1372
return ThrowInvalidOperation(
SR
.Contains_no_matching_elements);
1395
_ => ThrowInvalidOperation(
SR
.Contains_more_than_one_element)
1419
_ => ThrowInvalidOperation(
SR
.Contains_more_than_one_element)
1449
return ThrowInvalidOperation(
SR
.Contains_more_than_one_matching_element);
1489
return ThrowInvalidOperation(
SR
.Contains_more_than_one_matching_element);
1529
return ThrowInvalidOperation(
SR
.Contains_more_than_one_matching_element);
1572
return ThrowInvalidOperation(
SR
.Contains_more_than_one_matching_element);
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ReadOnlyListExtensions.cs (19)
8
using SR = Microsoft.AspNetCore.Razor.SharedUtilities.Resources.
CollectionUtilitiesSR
;
259
=> list.Count > 0 ? list[0] : ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_no_elements);
286
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_no_matching_elements);
317
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_no_matching_elements);
482
=> list.Count > 0 ? list[^1] : ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_no_elements);
509
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_no_matching_elements);
540
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_no_matching_elements);
712
0 => ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_no_elements),
713
_ => ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_more_than_one_element)
747
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_more_than_one_matching_element);
757
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_no_matching_elements);
796
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_more_than_one_matching_element);
806
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_no_matching_elements);
832
_ => ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_more_than_one_element)
859
_ => ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_more_than_one_element)
891
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_more_than_one_matching_element);
933
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_more_than_one_matching_element);
975
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_more_than_one_matching_element);
1020
return ThrowHelper.ThrowInvalidOperationException<T>(
SR
.Contains_more_than_one_matching_element);