I am learning C++/CLI and attempting to build an Interop component for my C# project. I’m not sure what this error means or how to resolve it? Any ideas?
#pragma once
using namespace System;
namespace Firewall {
public ref class Firewall
{
void StartFirewall(){};
}
}
Unlike C#, C++ requires a semicolon after a type definition.
In C#, you can actually have semicolons after type definitions (not recommended though) and that will be ignored. It is there for the sake of consistency with C++ syntax.