11

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; } } 
3
  • 2
    If the goal is to make an unmanaged C++ class that wraps that C# method, edit the question to say that. If you ask us for the equivalent to some C# code, the answers are going to be managed classes, not unmanaged. Commented Aug 13, 2014 at 19:55
  • 1
    “I want to create C++/CLI wrapper on the below C# code.” So, why don't you do that? Have you encountered some issues when doing it? Commented Aug 14, 2014 at 11:25
  • I am able to execute the code using abstract sealed. Thanks. Commented Aug 16, 2014 at 4:48

1 Answer 1

24
public ref class Helper abstract sealed { public: static System::Nullable<int> GetCodes(System::String^ input) { /* impl logic */ } }; 
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.