var actions = new List<Action>(); foreach (string name in names) { actions.Add(() => { Debug.Log(name); }); } foreach(var action in actions) { action(); }
var actions = new List<Action>(); foreach (string name in names) { actions.Add(() => { Debug.Log(name); }); } foreach(var action in actions) { action(); }
var actions = new List<Action>(); foreach (string name in names) { actions.Add(() => { Debug.Log(name); }); } foreach(var action in actions) { action(); }
var actions = new List<Action>(); foreach (string name in names) { actions.Add(() => { Debug.Log(name); }); } foreach(var action in actions) { action(); }
Members { get { return new ReadOnlyCollection<Person>(members); } } /* Ӿኼ */ } --- Team team = LoadTeam(); // ReadOnlyCollection<T>΅ClearϮϊϐϖΏ͚ // team.Members.Clear();