I want to add a C file to my .NET application.
How can I build this? How can I write unmanaged code in C #. Can someone explain with a few lines of code.
thank
You either need to assemble the C file into your own DLL, and then use P / Invoke in your C # code to call them or ...
You can also try porting C code to C #, which will give you a fully managed code base.
Source: https://habr.com/ru/post/1768410/More articles:Почему этот php не работает, но будет работать так? - phphow to convert boost :: weak_ptr to boost :: shared_ptr - c ++Authentication on Web.py - Will this code be unsafe for production? - pythonUsing the Stop Tray C # - c #The maven dependency level is not working properly - maven-2Spring: accessing the correct WebApplicationContext with multiple dispatchers declared - javaPermanent identifier of the system / processor, which remains on permutations and changes of the disk (C #) - c #Search for .txt files - cAdding a dynamic property to a python object - pythonSet-based execution SQL and .NET - sqlAll Articles