Fix CA1010

This commit is contained in:
RoosterDragon
2023-03-12 10:57:06 +00:00
committed by abcdefg30
parent 1db982276a
commit f09241d263
4 changed files with 25 additions and 17 deletions

View File

@@ -16,7 +16,7 @@ using System.Linq;
namespace OpenRA.Primitives
{
public class TypeDictionary : IEnumerable
public class TypeDictionary : IEnumerable<object>
{
static readonly Func<Type, List<object>> CreateList = type => new List<object>();
readonly Dictionary<Type, List<object>> data = new();
@@ -105,10 +105,15 @@ namespace OpenRA.Primitives
objs.TrimExcess();
}
public IEnumerator GetEnumerator()
public IEnumerator<object> GetEnumerator()
{
return WithInterface<object>().GetEnumerator();
}
IEnumerator IEnumerable.GetEnumerator()
{
return GetEnumerator();
}
}
public static class TypeExts