2 ms·
> The problem is that C# isn't a language intended for embedding It has always been intended for embedding, since netfx 1.0: https://docs.microsoft.com/en-us/d
by zamalek 5y ago
> The problem is that C# isn't a language intended for embedding
It has always been intended for embedding, since netfx 1.0: https://docs.microsoft.com/en-us/dotnet/framework/unmanaged-api/hosting/corbindtoruntime-function https://docs.microsoft.com/en-us/dotnet/framework/unmanaged-.... Microsoft used it for Office, MSSQL, and probably much more. Netcore has been trivially hostable since 3.0: https://docs.microsoft.com/en-us/dotnet/core/tutorials/netcore-hosting https://docs.microsoft.com/en-us/dotnet/core/tutorials/netco.... Both can be done under 50 lines of code, that couldn't be further from "not intended for embedding."
You'd still need to export your internals to the CLR, but you'd have to do that with any embedded language anyway.