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

@@ -22,7 +22,7 @@ namespace OpenRA
{
public interface ISuppressInitExport { }
public class ActorReference : IEnumerable
public class ActorReference : IEnumerable<object>
{
public string Type;
readonly Lazy<TypeDictionary> initDict;
@@ -104,7 +104,9 @@ namespace OpenRA
return ret;
}
public IEnumerator GetEnumerator() { return initDict.Value.GetEnumerator(); }
public IEnumerator<object> GetEnumerator() { return initDict.Value.GetEnumerator(); }
IEnumerator IEnumerable.GetEnumerator() { return GetEnumerator(); }
public ActorReference Clone()
{