Skip to main content

Mr.Lee's CSharp Helpers

Project description

🌺mycsharp

执行C#源码

使用示例:

from pylhb-csharp.mycsharp import MyCSharp

if __name__ == '__main__':
    code = """
    using System;
    namespace MyTest
    {
        public class SayHelp
        {
            public string SayHello(string name)
            {
                return "Hello " + name;
            }
        }
    }
    """
    dlls=["System.dll","mscorlib.dll"]
    mycsharp=MyCSharp(code,dlls)
    if mycsharp.compiler():
        result=mycsharp.callMethod("SayHelp","SayHello",['李生',])
        print(result)
    else:
        count,errMsg=mycsharp.getErrors()
        print(count)
        print(errMsg)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylhb_csharp-1.0.0.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pylhb_csharp-1.0.0-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pylhb_csharp-1.0.0.tar.gz.

File metadata

  • Download URL: pylhb_csharp-1.0.0.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pylhb_csharp-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7d30bb535703f9113229d901abf9d569c135fa25e5e3d68d355878de5987d5c8
MD5 2093036cc27ab32f68de05df1d8921cb
BLAKE2b-256 f1610dc2b90889b897a5990861be749cb688e602b4560429b2f42f0f782b99b0

See more details on using hashes here.

File details

Details for the file pylhb_csharp-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pylhb_csharp-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 4.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for pylhb_csharp-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d75bb8e6c9c415218bd07875a2ee7f0fa9804895ad9838fbb783e72cb20d058d
MD5 b17bd4ad6c2e74fe38234501e833e5f8
BLAKE2b-256 7abf9aa00612f22947dd43ec74d81c073bded4d8060c6fae80951aebb7438352

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page