Skip to main content

CSharpToCpp

Simple C# to C++ translator written in Python

Get Started

Install

pip install --upgrade cs2cpp

Usage

from cs2cpp import CSharpToCpp

cscpp = CSharpToCpp()
sourceCode = """using System;
// This is hello world program.
class Program
{
    public static void Main(string[] args)
    {
        var myFirstString = "ban";
        char*[] args = {"1", "2"};
        Console.WriteLine("Hello, world!");
    }
}"""
print(cscpp.translate(sourceCode)) # translate code from C# to C++!

Metadata

Release files for cs2cpp 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cs2cpp 0.2.0
File Size Uploaded
cs2cpp-0.2.0.tar.gz 15.0 kB Details

Release files / cs2cpp-0.2.0.tar.gz

Download URL cs2cpp-0.2.0.tar.gz
Size 15.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a6cc716a6654d97b92310160420b8f0540d9d6173a77ac0436bf1a965179b072
BLAKE2b-256 checksum
How to use checksums
98e474a6b672ec5dda9dbb11ca37c3feff8ea72dfda6900e46422585ccd85bf9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.0 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.10.0

Release history Release notifications | RSS feed

This release

0.2.0 This release

1 release file

0.1.1

2 release files

0.1.0

2 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page