Actually implemented the IEnumerable interface
This commit is contained in:
@@ -4,7 +4,7 @@ using System.Collections.Generic;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
public class ServiceManager
|
||||
public class ServiceManager : IEnumerable<IService>
|
||||
{
|
||||
private readonly Dictionary<Type, IService> _services;
|
||||
|
||||
@@ -38,6 +38,8 @@ namespace Discord
|
||||
return singletonT;
|
||||
}
|
||||
|
||||
IEnumerator<IService> IEnumerable<IService>.GetEnumerator() => _services.Values.GetEnumerator();
|
||||
|
||||
public IEnumerator GetEnumerator() => _services.Values.GetEnumerator();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user