public partial class Players : Node , IReadOnlyCollection { public int Count => GetChildCount(); public Player ByPeerId(int peerId) => this.GetNodeOrThrow(peerId.ToString()); public IEnumerator GetEnumerator() => GetChildren().Cast().GetEnumerator(); System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() => GetEnumerator(); }