3 ms·
This will also happen in Cil2Js. Any .NET library method (including system libraries) that is implemented as CIL can be converted directly to JS. In mscorlib h
by chrisb 15y ago
This will also happen in Cil2Js. Any .NET library method (including system libraries) that is implemented as CIL can be converted directly to JS.
In mscorlib however, there are many methods that are implemented directly by the .NET runtime; i.e. they are not implemented in CIL. Cil2Js will provide replacements for these, either written directly in JS, or in CIL (compiled from C# source) that will provide identical functionality.
For example, string.Length is not implemened in CIL. In fact, may of the methods on 'basic' types such as System.String, System.Array, System.Int32, etc... are implemented internally by the .NET runtime.