'Invoke C# library method from Chrome/Firefox (Or extension)

As the title explain, I would like call a C# library method from Chrome directly from Javascript (I think it will not be possible but I ask the question in case) or else from a Chrome/Firefox extension.

The goal is to communicate with a C# wrapper that uses a local device, so the idea of coding directly in javascript or server-side coding should be ruled out.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source