Latha
Latha

Reputation: 225

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

I want to create C++/CLI wrapper on the below C# code.

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

Upvotes: 11

Views: 7490

Answers (1)

chris
chris

Reputation: 2621

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

Upvotes: 24

Related Questions