45 TResult[] result =
new TResult[leftArray.Length];
51 TResult[] result =
new TResult[rightArray.Length];
57 TResult[] result =
new TResult[leftArray.Length];
64 if (leftArray ==
null) {
throw new ArgumentNullException(
"leftArray"); }
65 if (result ==
null) {
throw new ArgumentNullException(
"result"); }
66 if (leftArray.Length != result.Length) {
throw new ArgumentException(
"The Arrays Passed must equal in size."); }
67 for (
int pos = 0; pos < result.Length; ++pos)
69 operation(ref leftArray[pos], ref right, out result[pos]);
74 if (rightArray ==
null) {
throw new ArgumentNullException(
"rightArray"); }
75 if (result ==
null) {
throw new ArgumentNullException(
"result"); }
76 if (rightArray.Length != result.Length) {
throw new ArgumentException(
"The Arrays Passed must equal in size."); }
77 for (
int pos = 0; pos < result.Length; ++pos)
79 operation(ref left, ref rightArray[pos],out result[pos]);
84 if (leftArray ==
null) {
throw new ArgumentNullException(
"leftArray"); }
85 if (rightArray ==
null) {
throw new ArgumentNullException(
"rightArray"); }
86 if (result ==
null) {
throw new ArgumentNullException(
"result"); }
87 if (leftArray.Length != rightArray.Length || rightArray.Length != result.Length) {
throw new ArgumentException(
"The Arrays Passed must equal in size."); }
88 for (
int pos = 0; pos < result.Length; ++pos)
90 operation(ref leftArray[pos], ref rightArray[pos], out result[pos]);
96 TResult[] result =
new TResult[leftArray.Length];
102 TResult[] result =
new TResult[rightArray.Length];
108 TResult[] result =
new TResult[leftArray.Length];
115 if (leftArray ==
null) {
throw new ArgumentNullException(
"leftArray"); }
116 if (result ==
null) {
throw new ArgumentNullException(
"result"); }
117 if (leftArray.Length != result.Length) {
throw new ArgumentException(
"The Arrays Passed must equal in size."); }
118 for (
int pos = 0; pos < result.Length; ++pos)
120 result[pos] = operation(leftArray[pos], right);
125 if (rightArray ==
null) {
throw new ArgumentNullException(
"rightArray"); }
126 if (result ==
null) {
throw new ArgumentNullException(
"result"); }
127 if (rightArray.Length != result.Length) {
throw new ArgumentException(
"The Arrays Passed must equal in size."); }
128 for (
int pos = 0; pos < result.Length; ++pos)
130 result[pos] = operation(left, rightArray[pos]);
135 if (leftArray ==
null) {
throw new ArgumentNullException(
"leftArray"); }
136 if (rightArray ==
null) {
throw new ArgumentNullException(
"rightArray"); }
137 if (result ==
null) {
throw new ArgumentNullException(
"result"); }
138 if (leftArray.Length != rightArray.Length || rightArray.Length != result.Length) {
throw new ArgumentException(
"The Arrays Passed must equal in size."); }
139 for (
int pos = 0; pos < result.Length; ++pos)
141 result[pos] = operation(leftArray[pos], rightArray[pos]);
static TResult[] ArrayValOp< TLeft, TRight, TResult >(TLeft[] leftArray, TRight right, ValOperation< TLeft, TRight, TResult > operation)
static TResult[] ArrayRefOp< TLeft, TRight, TResult >(TLeft[] leftArray, ref TRight right, RefOperation< TLeft, TRight, TResult > operation)
delegate TResult ValOperation< TLeft, TRight, TResult >(TLeft left, TRight right)
delegate void RefOperation< TLeft, TRight, TResult >(ref TLeft left, ref TRight right, out TResult result)