49 references to SR
System.Numerics.Tensors (49)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
346throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 370throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
System\Numerics\Tensors\netcore\TensorPrimitives.Round.cs (6)
75throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, mode, typeof(MidpointRounding)), nameof(mode)); 132throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, mode, typeof(MidpointRounding)), nameof(mode)); 168throw new ArgumentException(SR.Format(SR.Argument_InvalidEnumValue, mode, typeof(MidpointRounding)), nameof(mode));
System\Numerics\Tensors\netcore\TensorSpan_1.cs (2)
242throw new NotSupportedException(SR.NotSupported_CannotCallEqualsOnSpan); 266throw new NotSupportedException(SR.NotSupported_CannotCallGetHashCodeOnSpan);
System\Numerics\Tensors\TensorPrimitives.Helpers.cs (1)
40private static void ThrowNegateTwosCompOverflow() => throw new OverflowException(SR.Overflow_NegateTwosCompNum);
System\ThrowHelper.cs (38)
16throw new ArgumentException(SR.Argument_DestinationTooShort, destinationName); 20throw new ArgumentException(SR.Argument_SpansMustHaveSameLength); 24throw new ArgumentException(SR.Argument_SpansMustBeNonEmpty); 28throw new ArgumentException(SR.Argument_InputAndDestinationSpanMustNotOverlap, "destination"); 48throw new ArgumentException(SR.Argument_DestinationSpansMustNotOverlap); 65throw new ArgumentException(SR.Format(SR.Argument_TypeContainsReferences, targetType)); 94throw new ArgumentException(SR.ThrowArgument_IndicesLengthMustEqualRank); 104throw new ArgumentOutOfRangeException("value", SR.ThrowArgument_ValueNonNegative); 110throw new ArgumentException(SR.ThrowArgument_FilterTensorMustEqualTensorLength); 116throw new ArgumentException(SR.ThrowArgument_SetSliceNoRange, paramNames); 122throw new ArgumentException(SR.ThrowArgument_SetSliceInvalidShapes, paramNames); 128throw new ArgumentException(SR.ThrowArgument_LengthsNotCompatible); 134throw new ArgumentException(SR.ThrowArgument_SplitNotSplitEvenly); 140throw new ArgumentException(SR.ThrowArgument_DimensionsNotSame, paramNames); 146throw new ArgumentException(SR.ThrowArgument_1DTensorRequired, paramNames); 152throw new ArgumentException(SR.Argument_2DTensorRequired, paramNames); 158throw new ArgumentException(SR.ThrowArgument_IncorrectNumberOfFilterItems, paramNames); 164throw new ArgumentException(SR.ThrowArgument_StackTooFewTensors); 170throw new ArgumentException(SR.ThrowArgument_OnlyOneWildcard); 176throw new ArgumentException(SR.ThrowArgument_InvalidReshapeDimensions); 182throw new ArgumentException(SR.ThrowArgument_AxisLargerThanRank); 188throw new ArgumentException(SR.ThrowArgument_InvalidSqueezeAxis); 194throw new ArgumentException(SR.ThrowArgument_ConcatenateTooFewTensors); 200throw new ArgumentException(SR.ThrowArgument_InvalidDimension); 206throw new ArgumentException(SR.ThrowArgument_InvalidConcatenateShape); 212throw new ArgumentException(SR.ThrowArgument_TransposeTooFewDimensions); 218throw new ArgumentException(SR.ThrowArgument_PermuteAxisOrder); 224throw new ArgumentException(SR.ThrowArgument_InPlaceInvalidShape); 230throw new ArgumentException(SR.ThrowArgument_InvalidStridesAndLengths); 236throw new ArgumentOutOfRangeException(SR.ThrowArgument_LengthIsNonZeroForNullReference); 242throw new ArgumentOutOfRangeException(SR.ThrowArgument_StrideLessThan0); 248throw new ArgumentException(SR.Format(SR.Argument_IncompatibleDimensions, leftDim, rightDim)); 254throw new ArgumentException(SR.ThrowArgument_StackShapesNotSame); 260throw new ArgumentException(SR.Argument_CannotReshapeNonContiguousOrDense); 266throw new ArgumentException(SR.Argument_MinGreaterThanMax); 272throw new ArithmeticException(SR.Arithmetic_NaN);