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); }
private JsArray Build(IGlueFactory factory, IEnumerable enumerable) { return(factory.BuildArray(enumerable, _BasicType)); }