public static MaxEnvelopeSizeHeader ReadFrom(XmlDictionaryReader reader)
 {
     reader.ReadStartElement(ElementName, Const.ManagementNamespace);
     var fragment = new StringBuilder();
     while (reader.NodeType == XmlNodeType.Text)
     {
         fragment.Append(reader.Value);
         reader.Read();
     }
     var result = new MaxEnvelopeSizeHeader(int.Parse(fragment.ToString()));
     reader.ReadEndElement();
     return result;
 }
Example #2
0
        public static MaxEnvelopeSizeHeader ReadFrom(XmlDictionaryReader reader)
        {
            reader.ReadStartElement(ElementName, Const.ManagementNamespace);
            var fragment = new StringBuilder();

            while (reader.NodeType == XmlNodeType.Text)
            {
                fragment.Append(reader.Value);
                reader.Read();
            }
            var result = new MaxEnvelopeSizeHeader(int.Parse(fragment.ToString()));

            reader.ReadEndElement();
            return(result);
        }