Can the DLL created by Mono be used on all platforms?

When I read this document about DLL (Unity - Manual: Managed plug-ins), I got 2 question:

  1. The DLL created by this way can be used on all platforms, can’t it?
    Before I read this document, I thought DLL is for Windows only, and *.so is for linux/Mac…

  2. Can I can write the DLL with other languages, such as C/C++?

Managed code DLLs work on all platforms. DLL stands for Dynamic Link Library and has nothing to do with any particular platform. The language used to create a managed code DLL is irrelevant since it’s always CIL code in the end, assuming you can find a CIL compiler for the language.

–Eric

Just want to add that some .NET calls aren’t implemented on all platforms, Windows Phone and Windows Store being the most notorious for this.

That’s not related to DLLs though. Scripts and DLLs are essentially the same thing in the end.

–Eric