Short ExamplesΒΆ

  1. Imports the C# extension into Python

Imports the C# extension into Python

<<<

from csharpyml.binaries import add_csharpml_extension
from csharpyml import __version__

add_csharpml_extension()

# This line needs to be after the previous one.
from CSharPyMLExtension import Constants

vers = Constants.Version()
print(__version__, vers)

>>>

    0.1 0.1

(original entry : add_reference.py:docstring of csharpyml.binaries.add_reference.add_csharpml_extension, line 8)