C++/CLI中C#的静态类/方法的等价物

Lat*_*tha 5 c# c++-cli

我想在下面的C#代码上创建C++/CLI包装器.

public static class Helper
{
  public static int? GetCodes(string input)
  {
    // Implementation of the logic.....
    return 1;
  }
}
Run Code Online (Sandbox Code Playgroud)

chr*_*ris 13

public ref class Helper abstract sealed
{
public:
    static System::Nullable<int> GetCodes(System::String^ input) { /* impl logic */ }
};
Run Code Online (Sandbox Code Playgroud)