0

我需要从 C++ 代码生成 C# 代码。

我只需要提取类和函数并放入 notimplementedexception。我想要的示例如下:

C++:

namespace TestNamespace
{
    public class TestClass
    {
        private:
        TestMethodA();

        public:
        TestMethodB(int i);
    }
}

到 c#

namespace TestNamespace
{
    public class TestClass
    {
        private void TestMethodA()
        {
            throw new NotImplementedException()
        }

        public bool TestMethodB(int i)
        {
            throw new NotImplementedException()
        }
    }
}

有没有可用的工具来生成这个?谢谢!

4

0 回答 0