This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree 2 files changed +2
-4
lines changed
src/mscorlib/shared/System/Numerics
2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -390,7 +390,7 @@ public unsafe Vector(T[] values, int index)
390
390
}
391
391
if ( index < 0 || ( values . Length - index ) < Count )
392
392
{
393
- throw new IndexOutOfRangeException ( ) ;
393
+ throw new IndexOutOfRangeException ( SR . Format ( SR . Arg_InsufficientNumberOfElements , Vector < T > . Count , nameof ( values ) ) ) ;
394
394
}
395
395
396
396
if ( Vector . IsHardwareAccelerated )
@@ -771,7 +771,6 @@ private Vector(ref Register existingRegister)
771
771
/// <summary>
772
772
/// Constructs a vector from the given span. The span must contain at least Vector'T.Count elements.
773
773
/// </summary>
774
- [ Intrinsic ]
775
774
public unsafe Vector ( Span < T > values )
776
775
: this ( )
777
776
{
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ namespace System.Numerics
202
202
}
203
203
if (index < 0 || (values.Length - index) < Count)
204
204
{
205
- throw new IndexOutOfRangeException();
205
+ throw new IndexOutOfRangeException(SR.Format(SR.Arg_InsufficientNumberOfElements, Vector<T>.Count, nameof(values)) );
206
206
}
207
207
208
208
if (Vector.IsHardwareAccelerated)
@@ -291,7 +291,6 @@ namespace System.Numerics
291
291
/// <summary>
292
292
/// Constructs a vector from the given span. The span must contain at least Vector'T.Count elements.
293
293
/// </summary>
294
- [Intrinsic]
295
294
public unsafe Vector(Span<T> values)
296
295
: this()
297
296
{
You can’t perform that action at this time.
0 commit comments