Hello. how to translate this code to C++CLI?
Here code from c#
public Chip GetChip(string type, string manufacturer, string name)
{
return _ChipList.Find(c => (c.GetType().Name == type) && (c.Manufacturer == manufacturer) && (c.Name == name));
}
.....
/**************************************************************
public ChipSettings()
{
_ChipList = new List<Chip>();
}
I have tried in c++cli but nothing
Chip^ ChipSettings::GetChip(String^ type, String^ manufacturer, String^ name)
{
return _ChipList->Find(c = > (c->GetType()->Name == type) && (c->Manufacturer == manufacturer) && (c->Name == name)); // error
}
//and the header file
private: List<Chip^>^ _ChipList = nullptr;
any help pls ..
ty