/// <summary>
        /// Creates an <see cref="ODataCollectionWriter" /> to write a collection of primitive or complex values (as result of a service operation invocation).
        /// </summary>
        /// <returns>The created collection writer.</returns>
        private ODataCollectionWriter CreateODataCollectionWriterImplementation()
        {
            ODataAtomCollectionWriter atomCollectionWriter = new ODataAtomCollectionWriter(this, /*expectedItemType*/ null, /*listener*/ null);

            this.outputInStreamErrorListener = atomCollectionWriter;
            return(atomCollectionWriter);
        }
        private ODataCollectionWriter CreateODataCollectionWriterImplementation()
        {
            ODataAtomCollectionWriter writer = new ODataAtomCollectionWriter(this, null, null);

            this.outputInStreamErrorListener = writer;
            return(writer);
        }
Exemple #3
0
        /// <summary>
        /// Creates an <see cref="ODataCollectionWriter" /> to write a collection of primitive or complex values (as result of a service operation invocation).
        /// </summary>
        /// <param name="itemTypeReference">The item type of the collection being written or null if no metadata is available.</param>
        /// <returns>The created collection writer.</returns>
        private ODataCollectionWriter CreateODataCollectionWriterImplementation(IEdmTypeReference itemTypeReference)
        {
            ODataAtomCollectionWriter atomCollectionWriter = new ODataAtomCollectionWriter(this, itemTypeReference);

            this.outputInStreamErrorListener = atomCollectionWriter;
            return(atomCollectionWriter);
        }
 /// <summary>
 /// Creates an <see cref="ODataCollectionWriter" /> to write a collection of primitive or complex values (as result of a service operation invocation).
 /// </summary>
 /// <returns>The created collection writer.</returns>
 private ODataCollectionWriter CreateODataCollectionWriterImplementation()
 {
     ODataAtomCollectionWriter atomCollectionWriter = new ODataAtomCollectionWriter(this, /*expectedItemType*/ null, /*listener*/ null);
     this.outputInStreamErrorListener = atomCollectionWriter;
     return atomCollectionWriter;
 }
 private ODataCollectionWriter CreateODataCollectionWriterImplementation()
 {
     ODataAtomCollectionWriter writer = new ODataAtomCollectionWriter(this, null, null);
     this.outputInStreamErrorListener = writer;
     return writer;
 }