示例#1
0
 public AtomPub10CategoriesDocumentFormatter(CategoriesDocument documentToWrite) : base(documentToWrite)
 {
     _maxExtensionSize = int.MaxValue;
     if (documentToWrite.IsInline)
     {
         _inlineDocumentType     = documentToWrite.GetType();
         _referencedDocumentType = typeof(ReferencedCategoriesDocument);
     }
     else
     {
         _referencedDocumentType = documentToWrite.GetType();
         _inlineDocumentType     = typeof(InlineCategoriesDocument);
     }
 }
 public AtomPub10CategoriesDocumentFormatter(CategoriesDocument documentToWrite) : base(documentToWrite)
 {
     this.maxExtensionSize            = 0x7fffffff;
     this.preserveAttributeExtensions = true;
     this.preserveElementExtensions   = true;
     if (documentToWrite.IsInline)
     {
         this.inlineDocumentType     = documentToWrite.GetType();
         this.referencedDocumentType = typeof(ReferencedCategoriesDocument);
     }
     else
     {
         this.referencedDocumentType = documentToWrite.GetType();
         this.inlineDocumentType     = typeof(InlineCategoriesDocument);
     }
 }
 public AtomPub10CategoriesDocumentFormatter(CategoriesDocument documentToWrite) : base(documentToWrite)
 {
     this.maxExtensionSize = 0x7fffffff;
     this.preserveAttributeExtensions = true;
     this.preserveElementExtensions = true;
     if (documentToWrite.IsInline)
     {
         this.inlineDocumentType = documentToWrite.GetType();
         this.referencedDocumentType = typeof(ReferencedCategoriesDocument);
     }
     else
     {
         this.referencedDocumentType = documentToWrite.GetType();
         this.inlineDocumentType = typeof(InlineCategoriesDocument);
     }
 }
示例#4
0
 public AtomPub10CategoriesDocumentFormatter(CategoriesDocument documentToWrite)
     : base(documentToWrite)
 {
     // No need to check that the parameter passed is valid - it is checked by the c'tor of the base class
     _maxExtensionSize            = int.MaxValue;
     _preserveAttributeExtensions = true;
     _preserveElementExtensions   = true;
     if (documentToWrite.IsInline)
     {
         _inlineDocumentType     = documentToWrite.GetType();
         _referencedDocumentType = typeof(ReferencedCategoriesDocument);
     }
     else
     {
         _referencedDocumentType = documentToWrite.GetType();
         _inlineDocumentType     = typeof(InlineCategoriesDocument);
     }
 }
 public AtomPub10CategoriesDocumentFormatter(CategoriesDocument documentToWrite)
     : base(documentToWrite)
 {
     // No need to check that the parameter passed is valid - it is checked by the c'tor of the base class
     this.maxExtensionSize = int.MaxValue;
     preserveAttributeExtensions = true;
     preserveElementExtensions = true;
     if (documentToWrite.IsInline)
     {
         this.inlineDocumentType = documentToWrite.GetType();
         this.referencedDocumentType = typeof(ReferencedCategoriesDocument);
     }
     else
     {
         this.referencedDocumentType = documentToWrite.GetType();
         this.inlineDocumentType = typeof(InlineCategoriesDocument);
     }
 }