示例#1
0
        public IndigoObject toIndigoArray(IEnumerable collection)
        {
            setSessionID();

            IndigoObject arr = createArray();

            foreach (IndigoObject obj in collection)
            {
                arr.arrayAdd(obj);
            }

            return(arr);
        }
示例#2
0
文件: Indigo.cs 项目: yfyh2013/indigo
        public IndigoObject reactionProductEnumerate(IndigoObject reaction, IEnumerable monomers)
        {
            setSessionID();
            IndigoObject indigoArrayArray = createArray();

            foreach (IEnumerable iter in monomers)
            {
                IndigoObject indigoArray = createArray();
                foreach (IndigoObject monomer in iter)
                {
                    indigoArray.arrayAdd(monomer);
                }
                indigoArrayArray.arrayAdd(indigoArray);
            }
            return(new IndigoObject(this, checkResult(_indigo_lib.indigoReactionProductEnumerate(reaction.self, indigoArrayArray.self))));
        }