mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
408 B
22 lines
408 B
using Microsoft.VisualBasic; |
|
using Microsoft.VisualBasic.CompilerServices; |
|
|
|
[StandardModule] |
|
internal sealed class VBCompoundAssign |
|
{ |
|
public static double[] Sum3(int[] v) |
|
{ |
|
double[] array = new double[4]; |
|
int num = Information.UBound(v); |
|
checked |
|
{ |
|
for (int i = 0; i <= num; i += 3) |
|
{ |
|
array[0] += v[i]; |
|
array[1] += v[i + 1]; |
|
array[2] += v[i + 2]; |
|
} |
|
return array; |
|
} |
|
} |
|
}
|
|
|