.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
322 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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