CreateDictionaryReader() public static method

public static CreateDictionaryReader ( System reader ) : System.Xml.XmlDictionaryReader
reader System
return System.Xml.XmlDictionaryReader
 public static IEnumerable <XmlDictionaryReader> GetChildElementReaders(this XmlDictionaryReader reader)
 {
     while (reader.Read())
     {
         if (reader.IsStartElement())
         {
             using (var child = XmlDictionaryReader.CreateDictionaryReader(reader.ReadSubtree()))
             {
                 if (!child.Read())
                 {
                     continue;
                 }
                 yield return(child);
             }
         }
     }
 }