Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

c#

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;
  }
}
like image 345
Latha Avatar asked Aug 13 '14 08:08

Latha


1 Answers

public ref class Helper abstract sealed
{
public:
    static System::Nullable<int> GetCodes(System::String^ input) { /* impl logic */ }
};
like image 168
chris Avatar answered Sep 19 '22 17:09

chris