Function AddElement(ByVal ary1 As Double(), ByVal ary2 As Double()) As Double() If ary1.Length <> ary2.Length Then Throw New ArgumentOutOfRangeException Return (From i In Enumerable.Range(0, ary1.Length) Select ary1(i) + ary2(i)).ToArray End Function