Implement Castclass

This commit is contained in:
Smaug123
2025-06-27 11:41:41 +01:00
parent 5cf0789439
commit 1ebcd0b4f5
42 changed files with 856 additions and 132 deletions

View File

@@ -0,0 +1,18 @@
using System.Collections.Generic;
using System.Linq;
namespace HelloWorldApp
{
class Program
{
static int Main(string[] args)
{
var l = new List<int>();
l.Add(8);
l.Add(100);
var m = l.Select(x => x.ToString()).ToList();
// 2 + 108 + (1 + 3) = 114
return m.Count + l.Sum() + m.Select(x => x.Length).Sum();
}
}
}