How to comunicate between C# and js scripts?

Hello, I have a problem and haven´t found any info… I must inserte some functions in an old unity game. The new function is solved with a C# script to use the process function from the System.Diagnostics. Now, I try to get some static variables from another Java-script in the C# script.
How can I do it?
I tryed this, where main the js-script is to get a reference:
main mScript = GetComponent();

error:
Assets/Scripts/ExecutePrint.cs(15,9): error CS0246: The type or namespace name `main’ could not be found. Are you missing a using directive or an assembly reference?

First of all, you don’t need to use C# to access .NET functionality. Unless you are using generics, they should work from JS as well. Sticking to a single language is the easiest way to avoid compilation ordering problems.

For one-way communication, you could force the compilation order:

For two-way communication, your only option is to use the SendMessage function:

Hi tomvds,
thank´s for the hint. The compilation order do the trick…

merci