public ActionResult <IEnumerable <string> > Get(int start, int length) { string[] oReturnString = new string[length]; IEnumerator oEnum = new Listify(start, length).GetEnumerator(); int i = 0; while (oEnum.MoveNext()) { oReturnString[i] = oEnum.Current.ToString(); i++; } return(oReturnString); }
public ActionResult <IEnumerable <string> > Get() { string[] oReturnString = new string[200]; IEnumerator oEnum = new Listify(100, 200).GetEnumerator(); int i = 0; while (oEnum.MoveNext()) { oReturnString[i] = oEnum.Current.ToString(); i++; } return(oReturnString); }