wiki‎ > ‎Documentation‎ > ‎Knowledge Base‎ > ‎

BCLImplementation

A Type from an Assembly which was not marked to be converted to a script application cannot be used in a script application. Such types include System.String. To enable such types jsc has a type redirection feature.

When the native source code is being outputted accessing such types is redirected to User Defined Types within your own application and its references which probably includes ScriptCoreLib.

Example:

   10     [Script(Implements = typeof(global::System.String), InternalConstructor = true)]

   11     internal class __String

   12     {