Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
        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);
        }