ExamplesΒΆ

  1. Imports the C# extension into :epkg:`Python`

Imports the C# extension into :epkg:`Python`

<<<

from csharpy.binaries import add_csharp_extension
from csharpy import __version__

add_csharp_extension()

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

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

>>>

    0.1 0.1

(original entry : add_reference.py:docstring of csharpy.binaries.add_reference.add_csharp_extension, line 8)