MCQs>IT & Programming>C#>Performance-wise, which of the following is the most efficient way to calculate the sum of integers stored in an object array?
C# MCQs
Performance-wise, which of the following is the most efficient way to calculate the sum of integers stored in an object array?
Answer
Correct Answer: int FindSum (object[] values) { int sum = values.OfType<int>().Sum(); return sum; }
Explanation:
Note: This Question is unanswered, help us to find answer for this one