Tue Jan 20, 2009 8:04 am
Tue Jan 20, 2009 11:04 pm
public static void RoundRobin(ArrayList rrSet)
{
if ( rrSet == null )
throw new ArgumentNullException("rrSet");
if ( rrSet.Count < 2 )
return;
object firstObj = rrSet[0];
for(int i = 1; i < rrSet.Count; i++)
{
rrSet[i - 1] = rrSet[i];
}
rrSet[rrSet.Count - 1] = firstObj;
}
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.