private IJSCSGlue Convert(IEnumerable source)
        {
            var type      = source.GetElementType();
            var basictype = _Context.IsTypeBasic(type) ? type : null;

            var res = _GlueFactory.BuildArray(source.Cast <object>().Select(s => Map(s)), source, basictype);



            _Cacher.CacheFromCSharpValue(source, res);
            return(res);
        }
예제 #2
0
 private JsArray Build(IGlueFactory factory, IEnumerable enumerable)
 {
     return(factory.BuildArray(enumerable, _BasicType));
 }