@@ -602,12 +602,12 @@ public void PermuteRows(int[] perm, CompressedColumnStorage<T> target)
602
602
603
603
if ( target . rows != rows || target . columns != columns )
604
604
{
605
- throw new ArgumentException ( Resources . InvalidDimensions , " target" ) ;
605
+ throw new ArgumentException ( Resources . InvalidDimensions , nameof ( target ) ) ;
606
606
}
607
607
608
608
if ( perm . Length < rows )
609
609
{
610
- throw new ArgumentException ( "Invalid permutation length." , " perm" ) ;
610
+ throw new ArgumentException ( "Invalid permutation length." , nameof ( perm ) ) ;
611
611
}
612
612
613
613
PermuteRows ( Values , ColumnPointers , RowIndices , bx , bp , bi , perm ) ;
@@ -637,17 +637,17 @@ public void PermuteColumns(int[] perm, CompressedColumnStorage<T> target)
637
637
638
638
if ( ReferenceEquals ( this , target ) )
639
639
{
640
- throw new ArgumentException ( "Cannot use this instance as target." , " target" ) ;
640
+ throw new ArgumentException ( "Cannot use this instance as target." , nameof ( target ) ) ;
641
641
}
642
642
643
643
if ( target . rows != rows || target . columns != columns )
644
644
{
645
- throw new ArgumentException ( Resources . InvalidDimensions , " target" ) ;
645
+ throw new ArgumentException ( Resources . InvalidDimensions , nameof ( target ) ) ;
646
646
}
647
647
648
648
if ( perm . Length < columns )
649
649
{
650
- throw new ArgumentException ( "Invalid permutation length." , " perm" ) ;
650
+ throw new ArgumentException ( "Invalid permutation length." , nameof ( perm ) ) ;
651
651
}
652
652
653
653
PermuteColumns ( Values , ColumnPointers , RowIndices , bx , bp , bi , perm ) ;
0 commit comments