/// <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> /// <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; }