Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

Help me covert the Java code to C# code

$
0
0

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();
}
};
}


Viewing all articles
Browse latest Browse all 8156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>