[Mono-list] Compiling to DLL

Edward Ned Harvey (mono) edward.harvey.mono at clevertrove.com
Fri Feb 7 14:22:03 UTC 2014


> From: mono-list-bounces at lists.ximian.com [mailto:mono-list-
> bounces at lists.ximian.com] On Behalf Of kolesiko
> 
> I have to write a small library. I have the source code, which contains a
> blank in the language C. As far as I know, this library is required to be
> compatible with the language C. However, I do not like this language. Is it
> possible to write this library in C# and compiled into binary code? In the
> future, I'm going to redo this library in a complete application,
> independent of the "parent" application. So I want to use C #. But now it's
> just a plug-in on T. Maybe I chose the wrong way at all? What do you advise?
> I am even ready to use any embeddable scripting language. Performance is
> not
> my primary goal.

I may be wrong, but I think:

If you write a DLL in C, then it's not usable in C# except by dropping down to Win32, in which case, you might as well just give up and use C.  Likewise, if you build a DLL in C#, you cannot use it in C, but you could use C++ .NET.


More information about the Mono-list mailing list