public IDictionaryEnumerator GetEnumerator() { if (this.stream == null) { throw new ArgumentNullException("Input stream cannot be null"); } IDictionaryEnumerator result; using (StreamReader streamReader = new StreamReader(this.stream)) { result = new PoParser().ParseIntoDictionary(streamReader).GetEnumerator(); } return result; }
public IDictionaryEnumerator GetEnumerator() { if (this.stream == null) { throw new ArgumentNullException("Input stream cannot be null"); } IDictionaryEnumerator result; using (StreamReader streamReader = new StreamReader(this.stream)) { result = new PoParser().ParseIntoDictionary(streamReader).GetEnumerator(); } return(result); }