示例#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;
 }
示例#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);
        }