ReactionEngine.isMoleculeDuplicated C# (CSharp) Method

isMoleculeDuplicated() public static method

public static isMoleculeDuplicated ( Molecule, mol, ArrayList list ) : bool
mol Molecule,
list ArrayList
return bool
  public static bool    isMoleculeDuplicated(Molecule mol, ArrayList list)
  {
    foreach (Molecule mol2 in list)
      if (mol2.getName() == mol.getName())
        return true;
    return false;
  }