using System.Collections;
using System.Collections.Generic;
public string Name { get; set; }
public static void Main()
List<MyDto> dtos = [new() { Name = "first" }, new() { Name = "second" }];
dtos.Select(_ => _.Name = "hello");
dtos.ForEach(_ => Console.WriteLine(_.Name));