Equivalent to C # static class / method in C ++ / CLI

I want to create a C ++ / CLI shell using the C # code below.

public static class Helper
{
  public static int? GetCodes(string input)
  {
    // Implementation of the logic.....
    return 1;
  }
}
+4
source share
1 answer
public ref class Helper abstract sealed
{
public:
    static System::Nullable<int> GetCodes(System::String^ input) { /* impl logic */ }
};
+9
source

All Articles