How "options.ScriptingAPI.SystemReferences" actually works

Tested a little more with example of Can I use System.Data.DataTable in my C# scripts?…

ThreadPool :

  • namespace : System.Threading
  • Assembly file in MSDN : System.Threading.ThreadPool.dll
  • dll file also exists in .Net : System.Threading.dll
-> Proper SystemReference : options.ScriptingAPI.SystemReferences.Add("System.Threading.ThreadPool");
-> SystemReference creating Error : options.ScriptingAPI.SystemReferences.Add("System.Threading");

= Only assembly file name works

Datatable :

  • namespace : System.Data
  • Assembly file in MSDN : System.Data.Common.dll
  • dll file also exists in .Net : System.Data.dll
-> Proper SystemReference : options.ScriptingAPI.SystemReferences.Add("System.Data");

= Namespace string? or Alternative DLL filename?

So it is pretty confusing what string should be assigned for flax engine reference… It is not clear referring to MSDN.