How can I use a C# code as a dependency in Python?

  c++, python, python-3.x

I have a C# code which I would like to use as a python dependency.
Is there a way to do it?

I tried converting code to dll, but dll can only save static methods, not the whole class. I am a beginner at C#

Thanks in advance.

Source: Python Questions