internal void WriteElementExtensions(XmlWriter writer)
 {
     if (writer == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer");
     }
     if (_elementExtensions != null)
     {
         _elementExtensions.WriteTo(writer);
     }
 }
 internal void WriteElementExtensions(XmlWriter writer, Func <string, string, bool> shouldSkipElement = null)
 {
     if (writer == null)
     {
         throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("writer");
     }
     if (_elementExtensions != null)
     {
         _elementExtensions.WriteTo(writer, shouldSkipElement);
     }
 }
示例#3
0
        internal void WriteElementExtensions(XmlWriter writer, Func <string, string, bool> shouldSkipElement = null)
        {
            if (writer == null)
            {
                throw new ArgumentNullException(nameof(writer));
            }

            if (_elementExtensions != null)
            {
                _elementExtensions.WriteTo(writer, shouldSkipElement);
            }
        }