CategoriesDocumentFormatter.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / NetFx35 / System.ServiceModel.Web / System / ServiceModel / Syndication / CategoriesDocumentFormatter.cs / 1 / CategoriesDocumentFormatter.cs

                            //------------------------------------------------------------ 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------

namespace System.ServiceModel.Syndication 
{
    using System.Collections.ObjectModel; 
    using System.Runtime.Serialization; 
    using System.Xml.Serialization;
    using System.Collections.Generic; 
    using System.Xml;

    [DataContract]
    public abstract class CategoriesDocumentFormatter 
    {
        CategoriesDocument document; 
 
        protected CategoriesDocumentFormatter()
        { 
        }
        protected CategoriesDocumentFormatter(CategoriesDocument documentToWrite)
        {
            if (documentToWrite == null) 
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("documentToWrite"); 
            } 
            this.document = documentToWrite;
        } 

        public CategoriesDocument Document
        {
            get { return this.document; } 
        }
 
        public abstract string Version 
        { get; }
 
        public abstract bool CanRead(XmlReader reader);
        public abstract void ReadFrom(XmlReader reader);
        public abstract void WriteTo(XmlWriter writer);
 
        protected virtual InlineCategoriesDocument CreateInlineCategoriesDocument()
        { 
            return new InlineCategoriesDocument(); 
        }
 
        protected virtual ReferencedCategoriesDocument CreateReferencedCategoriesDocument()
        {
            return new ReferencedCategoriesDocument();
        } 

        protected virtual void SetDocument(CategoriesDocument document) 
        { 
            this.document = document;
        } 
    }
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK