ASDAlexander77 / cs2cpp

C# to C++ transpiler (Cs2Cpp) (Powered by Roslyn)
http://csnative.codeplex.com
254 stars 62 forks source link

Is still in development? #9

Open LuisRGameloft opened 6 years ago

LuisRGameloft commented 6 years ago

Hi @ASDAlexander77 Your project It seems very interesting, but I did notice there is not changes or commits since Aug 3, 2017, is still on development?, I would do like to continue your project, but I don't know if it you have a guide, flow or something to help me how to understand the magic of this converter, because we are supporting a new platform and our project was made using C# with some C++ native libraries

Best Regards.

adamfk commented 6 years ago

@LuisRGameloft I'm also interested in the project. If you do fork it or start something similar, can you update here?

ASDAlexander77 commented 6 years ago

it is missing only native implementation which I am not implementing and I do not have plans to do it.

bernd5 commented 4 years ago

Unfortunately Alexander don't want to continue working on this project. In addition it is not true that it misses only native implementation.

What it does for example wrong is name hiding - in C++ are very different rules compared to CSharp (accessibility and visibility are indepent in C++).

This sample would just not compile:

class A
{
    public void Do(int i)
    {
        System.Console.Write("A :");
        System.Console.WriteLine(i);
    }
}

class B : A
{
    private new void Do(int i)
    {
        System.Console.Write("B: ");
        System.Console.WriteLine(i);
    }
}

struct TestClass
{
    static void Main()
    {
        B b = new B();
        b.Do(12);
    }
}
ASDAlexander77 commented 4 years ago

once I have finished ts2c++ I will have a look with fresh view what I can update in the project

sgf commented 4 years ago

Many people have been trying to port C # library to C ++ (https://github.com/sgf/Awesome-csharp2cpp). I have also tried it recently (using bdwgc), but it is really difficult, because C # has many features C ++ can not imitate (since I am a C ++ novice is even more difficult). If C # can be directly compiled into a native program is of great significance. I also noticed that the repositorie has been around for several years. Including some other repositories (https://github.com/kekyo/IL2C https://github.com/afrog33k/SharpNative https://github.com/xen2/SharpLang https://github.com/AlexAlbala/Alter-Native https://github.com/anydream/il2cpp). If it is possible, is there any hope of restarting?