How can i hide the c#/js code from my asset on the market?

How can i hide the c#/js code from my asset on the market?

Can i compile it into a dll?

Get an obfuscator from the asset store. Yes you can make a DLL. C# can be built into a .NET assembly, but you can also make a C-style DLL. The latter can only be used with Pro.