通过Boo在C#应用程序中使用列表

通过Boo在C#应用程序中使用列表,c#,list,embed,boo,C#,List,Embed,Boo,当这个被编译时,我得到了错误 BCE0077:无法调用'System.Collections.Generic.List'1[[ternaldungeon.Mob,externaldungeon,Version=1.0.0.0,Culture=Neutral,PublicKeyToken=null]]类型的表达式。 At(6,15)和(7,16)。在C#中,我包括这样的程序集,这可能是错误的: import EternalDungeon import System.Collections sta

当这个被编译时,我得到了错误

BCE0077:无法调用'System.Collections.Generic.List'1[[ternaldungeon.Mob,externaldungeon,Version=1.0.0.0,Culture=Neutral,PublicKeyToken=null]]类型的表达式。

At(6,15)和(7,16)。在C#中,我包括这样的程序集,这可能是错误的:

import EternalDungeon
import System.Collections

static def PlayerActivate():
    for x in range(ED.Mobs.Count):
        if ED.Mobs(x).Pos == ED.player.SpaceInFront():
            ED.Mobs(x).OnHit(ED.Sword)
            break

感谢您的帮助,我对Boo和“大会”都是新手。提前谢谢。

我自己解决了这个问题,我弄乱了数组的列表

        compiler.Parameters.References.Add(Assembly.LoadFile(Directory.GetCurrentDirectory() + @"\Eternal Dungeon.exe";));
        compiler.Parameters.References.Add(Assembly.GetAssembly(typeof(System.Collections.Comparer)));
更改为

    if ED.Mobs(x).Pos == ED.player.SpaceInFront():

我自己解决了这个问题,把数组的列表弄乱了

        compiler.Parameters.References.Add(Assembly.LoadFile(Directory.GetCurrentDirectory() + @"\Eternal Dungeon.exe";));
        compiler.Parameters.References.Add(Assembly.GetAssembly(typeof(System.Collections.Comparer)));
更改为

    if ED.Mobs(x).Pos == ED.player.SpaceInFront():