Docear4Word.CiteProcRunner.HackCreateWrappedArray C# (CSharp) Method

HackCreateWrappedArray() public method

public HackCreateWrappedArray ( Docear4Word.JSCitationIDAndIndexPair objects ) : object
objects Docear4Word.JSCitationIDAndIndexPair
return object
        public object HackCreateWrappedArray(JSCitationIDAndIndexPair[] objects)
        {
            var jsVersion = new object[objects.Length];
            for(var i = 0; i < jsVersion.Length; i++)
            {
                jsVersion[i] = CreateJSArray(new object[] { objects[i].ID, objects[i].Index });
            }

            var result = CreateJSArray(jsVersion);
            return result;
        }