コード例 #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))));
        }