Sandcastle XML Comments Guide
![]() | SampleClassSumValues Method (IEnumerableInt32, IEnumerableInt32) |
This is used to sum two enumerable list of values
Namespace: XMLCommentsExamples
Assembly: XMLCommentsExamples (in XMLCommentsExamples.dll) Version: 2014.1.26.0

public int SumValues( IEnumerable<int> firstValues, IEnumerable<int> secondValues )
Public Function SumValues ( firstValues As IEnumerable(Of Integer), secondValues As IEnumerable(Of Integer) ) As Integer
public: int SumValues( IEnumerable<int>^ firstValues, IEnumerable<int>^ secondValues )
member SumValues : firstValues : IEnumerable<int> * secondValues : IEnumerable<int> -> int
Parameters
- firstValues
- Type: System.Collections.GenericIEnumerableInt32
The first set of values to sum - secondValues
- Type: System.Collections.GenericIEnumerableInt32
The second set of values to sum
Return Value
Type: Int32The sum of the values from both enumerable lists
