System.Xml.XmlDictionaryReader.CreateDictionaryReader C# (CSharp) Méthode

CreateDictionaryReader() public static méthode

public static CreateDictionaryReader ( System reader ) : System.Xml.XmlDictionaryReader
reader System
Résultat System.Xml.XmlDictionaryReader
        public static System.Xml.XmlDictionaryReader CreateDictionaryReader(System.Xml.XmlReader reader) { throw null; }
        public static System.Xml.XmlDictionaryReader CreateMtomReader(byte[] buffer, int offset, int count, System.Text.Encoding encoding, System.Xml.XmlDictionaryReaderQuotas quotas) { throw null; }

Same methods

XmlDictionaryReader::CreateDictionaryReader ( XmlReader reader ) : XmlDictionaryReader

Usage Example

 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);
             }
         }
     }
 }