55 references to CollectionUtilitiesSR
Microsoft.AspNetCore.Razor.Utilities.Shared (55)
src\427269d77cf079ab\Microsoft.AspNetCore.Razor.SharedUtilities.Resources.CollectionUtilitiesSR.cs (1)
10internal 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)
10using SR = Microsoft.AspNetCore.Razor.SharedUtilities.Resources.CollectionUtilitiesSR; 186ThrowHelper.ThrowArgumentException(paramName, SR.Destination_is_too_short);
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\Assumed.cs (9)
8using SR = Microsoft.AspNetCore.Razor.SharedUtilities.Resources.CollectionUtilitiesSR; 24ThrowInvalidOperation(message ?? SR.FormatExpected_0_to_be_non_null(valueExpression), path, line); 51ThrowInvalidOperation(message ?? SR.FormatExpected_0_to_be_non_null(valueExpression), path, line); 76ThrowInvalidOperation(message ?? SR.Expected_condition_to_be_false, path, line); 102ThrowInvalidOperation(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)
10using SR = Microsoft.AspNetCore.Razor.SharedUtilities.Resources.CollectionUtilitiesSR; 688return ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_no_matching_elements); 749return ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_no_matching_elements); 846return ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_more_than_one_matching_element); 891return 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)
12using SR = Microsoft.AspNetCore.Razor.SharedUtilities.Resources.CollectionUtilitiesSR; 871=> Count > 0 ? this[0] : ThrowInvalidOperation(SR.Contains_no_elements); 895return ThrowInvalidOperation(SR.Contains_no_matching_elements); 923return ThrowInvalidOperation(SR.Contains_no_matching_elements); 1071=> Count > 0 ? this[^1] : ThrowInvalidOperation(SR.Contains_no_elements); 1096return ThrowInvalidOperation(SR.Contains_no_matching_elements); 1125return ThrowInvalidOperation(SR.Contains_no_matching_elements); 12840 => ThrowInvalidOperation(SR.Contains_no_elements), 1285_ => ThrowInvalidOperation(SR.Contains_more_than_one_element) 1316return ThrowInvalidOperation(SR.Contains_more_than_one_matching_element); 1326return ThrowInvalidOperation(SR.Contains_no_matching_elements); 1362return ThrowInvalidOperation(SR.Contains_more_than_one_matching_element); 1372return ThrowInvalidOperation(SR.Contains_no_matching_elements); 1395_ => ThrowInvalidOperation(SR.Contains_more_than_one_element) 1419_ => ThrowInvalidOperation(SR.Contains_more_than_one_element) 1449return ThrowInvalidOperation(SR.Contains_more_than_one_matching_element); 1489return ThrowInvalidOperation(SR.Contains_more_than_one_matching_element); 1529return ThrowInvalidOperation(SR.Contains_more_than_one_matching_element); 1572return ThrowInvalidOperation(SR.Contains_more_than_one_matching_element);
src\roslyn\src\Razor\src\Shared\Microsoft.AspNetCore.Razor.SharedUtilities\ReadOnlyListExtensions.cs (19)
8using SR = Microsoft.AspNetCore.Razor.SharedUtilities.Resources.CollectionUtilitiesSR; 259=> list.Count > 0 ? list[0] : ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_no_elements); 286return ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_no_matching_elements); 317return ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_no_matching_elements); 482=> list.Count > 0 ? list[^1] : ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_no_elements); 509return ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_no_matching_elements); 540return ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_no_matching_elements); 7120 => ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_no_elements), 713_ => ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_more_than_one_element) 747return ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_more_than_one_matching_element); 757return ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_no_matching_elements); 796return ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_more_than_one_matching_element); 806return 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) 891return ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_more_than_one_matching_element); 933return ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_more_than_one_matching_element); 975return ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_more_than_one_matching_element); 1020return ThrowHelper.ThrowInvalidOperationException<T>(SR.Contains_more_than_one_matching_element);