Answers for "how to populate a collection c#"

C#
0

how to populate a collection c#

using System;
using System.Collections.Generic;
using System.Linq;

var vals = new List<int>() { 1, 2, 3, 4, 5, 6, 7 };

int sum = vals.Sum();
Console.WriteLine(sum);
Posted by: Guest on September-17-2021

Code answers related to "how to populate a collection c#"

C# Answers by Framework

Browse Popular Code Answers by Language