I found solution!
My sequence of actions:
Create
Split
method of string splitting in any Script# class.Define conditional compilation symbol DOTNET in your .NET project.
Add As Link file with
Split
method from Script# to .NET project and also add as link another necessary dependent files.
public static string[] Split(string str, string separator)
{
string[] result;
#if DOTNET
result = str.Split(new string[] { separator }, System.StringSplitOptions.None);
#else
result = str.Split(separator);
#endif
return result;
}
After that appropriate code will be selected dependent on DOTNET symbol, which defined only in .NET project. Other similar methods, not only with strings, can be rewritten in the same way.