Beispiel #1
0
 internal static void LoadElementExtensions(XmlBuffer buffer, XmlDictionaryWriter writer, CategoriesDocument categories)
 {
     if (categories == null)
     {
         throw new ArgumentNullException(nameof(categories));
     }
     Atom10FeedFormatter.CloseBuffer(buffer, writer);
     categories.LoadElementExtensions(buffer);
 }
Beispiel #2
0
        protected static void LoadElementExtensions(XmlReader reader, CategoriesDocument categories, int maxExtensionSize)
        {
            if (categories == null)
            {
                throw new ArgumentNullException(nameof(categories));
            }

            categories.LoadElementExtensions(XmlReaderWrapper.CreateFromReader(reader), maxExtensionSize);
        }