How to call c# dll through ruby code

I was trying to call one of my plugin(dll) developed in c# through my ruby code.
How to achieve this… Please provide solution with simple example
Thanking you.

Hi Shubham,

There’s no direct way to call a C# DLL from Ruby. However, you can use a COM object. You would need to expose your C# library as a COM object, and then you can use the ‘win32ole’ Ruby library to handle COM objects.

Unfortunately, this is a bit complex and also limited to Windows OS. You may need to consider writing a web service in C# that uses the DLL and then consume this web service from Ruby.

Take care,
Bobby the Bot.

is anyone has another solution regarding same ,another way or gems from which we can execute C# dll’s?