/// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="atomOutputContext">The output context to write to.</param>
        internal ODataAtomEntryAndFeedSerializer(ODataAtomOutputContext atomOutputContext)
            : base(atomOutputContext)
        {
            this.atomEntryMetadataSerializer = new ODataAtomEntryMetadataSerializer(atomOutputContext);
            this.atomFeedMetadataSerializer = new ODataAtomFeedMetadataSerializer(atomOutputContext);

            // DEVNOTE: grab this early so that any validation errors are thrown at creation time rather than when Write___ is called.
            this.contextUriBuilder = atomOutputContext.CreateContextUriBuilder();
        }
        /// <summary>
        /// Constructor.
        /// </summary>
        /// <param name="atomOutputContext">The output context to write to.</param>
        internal ODataAtomEntryAndFeedSerializer(ODataAtomOutputContext atomOutputContext)
            : base(atomOutputContext)
        {
            this.atomEntryMetadataSerializer = new ODataAtomEntryMetadataSerializer(atomOutputContext);
            this.atomFeedMetadataSerializer  = new ODataAtomFeedMetadataSerializer(atomOutputContext);

            // DEVNOTE: grab this early so that any validation errors are thrown at creation time rather than when Write___ is called.
            this.contextUriBuilder = atomOutputContext.CreateContextUriBuilder();
        }