public bool MoveNext() { if (index < (str.length - 1)) { index++; currentElement = str.charAt(index).As <char>(); return(true); } index = str.length; return(false); }