public IndigoObject toIndigoArray(IEnumerable collection) { setSessionID(); IndigoObject arr = createArray(); foreach (IndigoObject obj in collection) { arr.arrayAdd(obj); } return(arr); }
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)))); }