I want to covert the following code to C# code, but always meet troubles.
Could you help on that? Thanks!
/** * Returns an iterator for the DNA sequences in this list. * * @return Iterator. */ public Iterator<DnaSequence> iterator() { return new Iterator<DnaSequence>() { int i = 0; public boolean hasNext() { return i < mySequence.length; } public DnaSequence next() { return mySequence[i++]; } public void remove() { throw new UnsupportedOperationException(); } }; }