Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to export C# methods?

How can we export C# methods?

I have a dll and I want to use its methods in the Python language with the ctypes module. Because I need to use the ctypes module, I need to export the C# methods for them to be visible in Python.

So, how can I export the C# methods (like they do in C++)?

like image 373
aF. Avatar asked Jan 17 '10 18:01

aF.


People also ask

What is export in C?

Exporting is relative to that process. In C/C++ if you want to declare a function to use it without defining it in a source file, you should use the keyword "extern". In the file where that function is defined you have nothing special to make, by defaults things at global scope are automatically exported.

Is export a keyword in C?

1) [Note: The export keyword is unused but is reserved for future use.


1 Answers

Contrary to popular belief, this is possible.
See here.

like image 128
SLaks Avatar answered Sep 18 '22 15:09

SLaks