@@ -580,6 +580,10 @@ internal DataFrameColumn AddImplementation<U>(PrimitiveDataFrameColumn<U> column
580
580
}
581
581
else
582
582
{
583
+ if ( inPlace )
584
+ {
585
+ throw new ArgumentException ( string . Format ( Strings . MismatchedColumnValueType , typeof ( T ) ) , nameof ( column ) ) ;
586
+ }
583
587
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
584
588
decimalColumn . _columnContainer . Add ( column . CloneAsDecimalColumn ( ) . _columnContainer ) ;
585
589
return decimalColumn ;
@@ -609,6 +613,10 @@ internal DataFrameColumn AddImplementation<U>(PrimitiveDataFrameColumn<U> column
609
613
}
610
614
else
611
615
{
616
+ if ( inPlace )
617
+ {
618
+ throw new ArgumentException ( string . Format ( Strings . MismatchedColumnValueType , typeof ( T ) ) , nameof ( column ) ) ;
619
+ }
612
620
if ( typeof ( U ) == typeof ( decimal ) )
613
621
{
614
622
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
@@ -648,6 +656,10 @@ internal DataFrameColumn AddImplementation<U>(U value, bool inPlace)
648
656
}
649
657
else
650
658
{
659
+ if ( inPlace )
660
+ {
661
+ throw new ArgumentException ( string . Format ( Strings . MismatchedValueType , typeof ( T ) ) , nameof ( value ) ) ;
662
+ }
651
663
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
652
664
decimalColumn . _columnContainer . Add ( DecimalConverter < U > . Instance . GetDecimal ( value ) ) ;
653
665
return decimalColumn ;
@@ -677,6 +689,10 @@ internal DataFrameColumn AddImplementation<U>(U value, bool inPlace)
677
689
}
678
690
else
679
691
{
692
+ if ( inPlace )
693
+ {
694
+ throw new ArgumentException ( string . Format ( Strings . MismatchedValueType , typeof ( T ) ) , nameof ( value ) ) ;
695
+ }
680
696
if ( typeof ( U ) == typeof ( decimal ) )
681
697
{
682
698
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
@@ -720,6 +736,10 @@ internal DataFrameColumn SubtractImplementation<U>(PrimitiveDataFrameColumn<U> c
720
736
}
721
737
else
722
738
{
739
+ if ( inPlace )
740
+ {
741
+ throw new ArgumentException ( string . Format ( Strings . MismatchedColumnValueType , typeof ( T ) ) , nameof ( column ) ) ;
742
+ }
723
743
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
724
744
decimalColumn . _columnContainer . Subtract ( column . CloneAsDecimalColumn ( ) . _columnContainer ) ;
725
745
return decimalColumn ;
@@ -749,6 +769,10 @@ internal DataFrameColumn SubtractImplementation<U>(PrimitiveDataFrameColumn<U> c
749
769
}
750
770
else
751
771
{
772
+ if ( inPlace )
773
+ {
774
+ throw new ArgumentException ( string . Format ( Strings . MismatchedColumnValueType , typeof ( T ) ) , nameof ( column ) ) ;
775
+ }
752
776
if ( typeof ( U ) == typeof ( decimal ) )
753
777
{
754
778
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
@@ -788,6 +812,10 @@ internal DataFrameColumn SubtractImplementation<U>(U value, bool inPlace)
788
812
}
789
813
else
790
814
{
815
+ if ( inPlace )
816
+ {
817
+ throw new ArgumentException ( string . Format ( Strings . MismatchedValueType , typeof ( T ) ) , nameof ( value ) ) ;
818
+ }
791
819
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
792
820
decimalColumn . _columnContainer . Subtract ( DecimalConverter < U > . Instance . GetDecimal ( value ) ) ;
793
821
return decimalColumn ;
@@ -817,6 +845,10 @@ internal DataFrameColumn SubtractImplementation<U>(U value, bool inPlace)
817
845
}
818
846
else
819
847
{
848
+ if ( inPlace )
849
+ {
850
+ throw new ArgumentException ( string . Format ( Strings . MismatchedValueType , typeof ( T ) ) , nameof ( value ) ) ;
851
+ }
820
852
if ( typeof ( U ) == typeof ( decimal ) )
821
853
{
822
854
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
@@ -860,6 +892,10 @@ internal DataFrameColumn MultiplyImplementation<U>(PrimitiveDataFrameColumn<U> c
860
892
}
861
893
else
862
894
{
895
+ if ( inPlace )
896
+ {
897
+ throw new ArgumentException ( string . Format ( Strings . MismatchedColumnValueType , typeof ( T ) ) , nameof ( column ) ) ;
898
+ }
863
899
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
864
900
decimalColumn . _columnContainer . Multiply ( column . CloneAsDecimalColumn ( ) . _columnContainer ) ;
865
901
return decimalColumn ;
@@ -889,6 +925,10 @@ internal DataFrameColumn MultiplyImplementation<U>(PrimitiveDataFrameColumn<U> c
889
925
}
890
926
else
891
927
{
928
+ if ( inPlace )
929
+ {
930
+ throw new ArgumentException ( string . Format ( Strings . MismatchedColumnValueType , typeof ( T ) ) , nameof ( column ) ) ;
931
+ }
892
932
if ( typeof ( U ) == typeof ( decimal ) )
893
933
{
894
934
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
@@ -928,6 +968,10 @@ internal DataFrameColumn MultiplyImplementation<U>(U value, bool inPlace)
928
968
}
929
969
else
930
970
{
971
+ if ( inPlace )
972
+ {
973
+ throw new ArgumentException ( string . Format ( Strings . MismatchedValueType , typeof ( T ) ) , nameof ( value ) ) ;
974
+ }
931
975
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
932
976
decimalColumn . _columnContainer . Multiply ( DecimalConverter < U > . Instance . GetDecimal ( value ) ) ;
933
977
return decimalColumn ;
@@ -957,6 +1001,10 @@ internal DataFrameColumn MultiplyImplementation<U>(U value, bool inPlace)
957
1001
}
958
1002
else
959
1003
{
1004
+ if ( inPlace )
1005
+ {
1006
+ throw new ArgumentException ( string . Format ( Strings . MismatchedValueType , typeof ( T ) ) , nameof ( value ) ) ;
1007
+ }
960
1008
if ( typeof ( U ) == typeof ( decimal ) )
961
1009
{
962
1010
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
@@ -1000,6 +1048,10 @@ internal DataFrameColumn DivideImplementation<U>(PrimitiveDataFrameColumn<U> col
1000
1048
}
1001
1049
else
1002
1050
{
1051
+ if ( inPlace )
1052
+ {
1053
+ throw new ArgumentException ( string . Format ( Strings . MismatchedColumnValueType , typeof ( T ) ) , nameof ( column ) ) ;
1054
+ }
1003
1055
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
1004
1056
decimalColumn . _columnContainer . Divide ( column . CloneAsDecimalColumn ( ) . _columnContainer ) ;
1005
1057
return decimalColumn ;
@@ -1029,6 +1081,10 @@ internal DataFrameColumn DivideImplementation<U>(PrimitiveDataFrameColumn<U> col
1029
1081
}
1030
1082
else
1031
1083
{
1084
+ if ( inPlace )
1085
+ {
1086
+ throw new ArgumentException ( string . Format ( Strings . MismatchedColumnValueType , typeof ( T ) ) , nameof ( column ) ) ;
1087
+ }
1032
1088
if ( typeof ( U ) == typeof ( decimal ) )
1033
1089
{
1034
1090
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
@@ -1068,6 +1124,10 @@ internal DataFrameColumn DivideImplementation<U>(U value, bool inPlace)
1068
1124
}
1069
1125
else
1070
1126
{
1127
+ if ( inPlace )
1128
+ {
1129
+ throw new ArgumentException ( string . Format ( Strings . MismatchedValueType , typeof ( T ) ) , nameof ( value ) ) ;
1130
+ }
1071
1131
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
1072
1132
decimalColumn . _columnContainer . Divide ( DecimalConverter < U > . Instance . GetDecimal ( value ) ) ;
1073
1133
return decimalColumn ;
@@ -1097,6 +1157,10 @@ internal DataFrameColumn DivideImplementation<U>(U value, bool inPlace)
1097
1157
}
1098
1158
else
1099
1159
{
1160
+ if ( inPlace )
1161
+ {
1162
+ throw new ArgumentException ( string . Format ( Strings . MismatchedValueType , typeof ( T ) ) , nameof ( value ) ) ;
1163
+ }
1100
1164
if ( typeof ( U ) == typeof ( decimal ) )
1101
1165
{
1102
1166
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
@@ -1140,6 +1204,10 @@ internal DataFrameColumn ModuloImplementation<U>(PrimitiveDataFrameColumn<U> col
1140
1204
}
1141
1205
else
1142
1206
{
1207
+ if ( inPlace )
1208
+ {
1209
+ throw new ArgumentException ( string . Format ( Strings . MismatchedColumnValueType , typeof ( T ) ) , nameof ( column ) ) ;
1210
+ }
1143
1211
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
1144
1212
decimalColumn . _columnContainer . Modulo ( column . CloneAsDecimalColumn ( ) . _columnContainer ) ;
1145
1213
return decimalColumn ;
@@ -1169,6 +1237,10 @@ internal DataFrameColumn ModuloImplementation<U>(PrimitiveDataFrameColumn<U> col
1169
1237
}
1170
1238
else
1171
1239
{
1240
+ if ( inPlace )
1241
+ {
1242
+ throw new ArgumentException ( string . Format ( Strings . MismatchedColumnValueType , typeof ( T ) ) , nameof ( column ) ) ;
1243
+ }
1172
1244
if ( typeof ( U ) == typeof ( decimal ) )
1173
1245
{
1174
1246
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
@@ -1208,6 +1280,10 @@ internal DataFrameColumn ModuloImplementation<U>(U value, bool inPlace)
1208
1280
}
1209
1281
else
1210
1282
{
1283
+ if ( inPlace )
1284
+ {
1285
+ throw new ArgumentException ( string . Format ( Strings . MismatchedValueType , typeof ( T ) ) , nameof ( value ) ) ;
1286
+ }
1211
1287
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
1212
1288
decimalColumn . _columnContainer . Modulo ( DecimalConverter < U > . Instance . GetDecimal ( value ) ) ;
1213
1289
return decimalColumn ;
@@ -1237,6 +1313,10 @@ internal DataFrameColumn ModuloImplementation<U>(U value, bool inPlace)
1237
1313
}
1238
1314
else
1239
1315
{
1316
+ if ( inPlace )
1317
+ {
1318
+ throw new ArgumentException ( string . Format ( Strings . MismatchedValueType , typeof ( T ) ) , nameof ( value ) ) ;
1319
+ }
1240
1320
if ( typeof ( U ) == typeof ( decimal ) )
1241
1321
{
1242
1322
PrimitiveDataFrameColumn < decimal > decimalColumn = CloneAsDecimalColumn ( ) ;
0 commit comments