Sample ClassSum Values(IEnumerableInt 32, IEnumerableInt 32) Method
This is used to sum two enumerable list of values
Definition
Namespace: XMLCommentsExamples
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
The sum of the values from both enumerable lists
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2025.4.26.0
C#
public int SumValues(
IEnumerable<int> firstValues,
IEnumerable<int> secondValues
)VB
Public Function SumValues (
firstValues As IEnumerable(Of Integer),
secondValues As IEnumerable(Of Integer)
) As IntegerC++
public:
int SumValues(
IEnumerable<int>^ firstValues,
IEnumerable<int>^ secondValues
)F#
member SumValues :
firstValues : IEnumerable<int> *
secondValues : IEnumerable<int> -> int Parameters
- firstValues IEnumerableInt32
- The first set of values to sum
- secondValues IEnumerableInt32
- The second set of values to sum
Return Value
Int32The sum of the values from both enumerable lists