我在运行下面的脚本时收到以下错误消息,我查看了文档中的示例,但无法找出问题所在:
Error (CS1061): 'System.Collections.Generic.List<Rhino.Geometry.Brep>' does not contain a definition for 'GetArea' and no extension method 'GetArea' accepting a first argument of type 'System.Collections.Generic.List<Rhino.Geometry.Brep>' could be found (are you missing a using directive or an assembly reference?)
代码:
private void RunScript(List<Brep> x, ref object A)
{
A = x.GetArea();
}