19 lines
425 B
C#
19 lines
425 B
C#
using System.Collections;
|
|
using Toolkit.Foundation;
|
|
|
|
namespace Wallet;
|
|
|
|
public class WalletHostCollection :
|
|
IWalletHostCollection
|
|
|
|
{
|
|
private readonly List<IComponentHost> hosts = [];
|
|
|
|
public void Add(IComponentHost host) => hosts.Add(host);
|
|
|
|
public IEnumerator<IComponentHost> GetEnumerator() =>
|
|
hosts.GetEnumerator();
|
|
|
|
IEnumerator IEnumerable.GetEnumerator() =>
|
|
hosts.GetEnumerator();
|
|
} |