IMemoryDomainList - downgrade from IList to IEnumerable, refactor a spot that needed something more than that

This commit is contained in:
adelikat 2015-01-14 00:34:50 +00:00
parent 418d80b0e8
commit 9358e24213
2 changed files with 5 additions and 3 deletions

View File

@ -63,9 +63,11 @@ namespace BizHawk.Client.Common
{ {
var table = Lua.NewTable(); var table = Lua.NewTable();
for (int i = 0; i < DomainList.Count; i++) int i = 0;
foreach (var domain in DomainList)
{ {
table[i] = DomainList[i].Name; table[i] = domain.Name;
i++;
} }
return table; return table;

View File

@ -14,7 +14,7 @@ namespace BizHawk.Emulation.Common
IMemoryDomainList MemoryDomains { get; } IMemoryDomainList MemoryDomains { get; }
} }
public interface IMemoryDomainList : IList<MemoryDomain> public interface IMemoryDomainList : IEnumerable<MemoryDomain>
{ {
MemoryDomain this[string name] { get; } MemoryDomain this[string name] { get; }