在Visual C# Express上,我收到以下代码错误:
'类型'myComponent.SettingsComponent'已经定义了一个名为'SolveInstance'的成员,具有相同的参数类型'
但我只在SolveInstance
那里使用过。我做错了什么,下次我怎么能自己解决这个问题?
namespace myComponent
{
public class SettingsComponent : GH_Component
{
protected override void SolveInstance(IGH_DataAccess DA)
{
}
protected override void RegisterOutputParams(GH_Component.GH_OutputParamManager pManager)
{
}
protected override void SolveInstance(IGH_DataAccess DA)
{
if (m_settings == null)
{
AddRuntimeMessage(warning, "You must declare some valid settings");
return;
}
DA.SetData(0, m_settings);
}
}
}