/// <summary> /// Constructor. /// </summary> /// <param name="jsonOutputContext">The output context to write to.</param> /// <param name="expectedItemType">The type reference of the expected item type or null if no expected item type exists.</param> /// <param name="listener">If not null, the writer will notify the implementer of the interface of relevant state changes in the writer.</param> internal ODataJsonCollectionWriter(ODataJsonOutputContext jsonOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener) : base(jsonOutputContext, expectedItemType, listener) { DebugUtils.CheckNoExternalCallers(); Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null"); this.jsonOutputContext = jsonOutputContext; this.jsonCollectionSerializer = new ODataJsonCollectionSerializer(this.jsonOutputContext); }
/// <summary> /// Constructor. /// </summary> /// <param name="jsonOutputContext">The output context to write to.</param> /// <param name="expectedItemType">The type reference of the expected item type or null if no expected item type exists.</param> /// <param name="listener">If not null, the writer will notify the implementer of the interface of relevant state changes in the writer.</param> internal ODataJsonCollectionWriter(ODataJsonOutputContext jsonOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener) : base(jsonOutputContext, expectedItemType, listener) { DebugUtils.CheckNoExternalCallers(); Debug.Assert(jsonOutputContext != null, "jsonOutputContext != null"); this.jsonOutputContext = jsonOutputContext; this.jsonCollectionSerializer = new ODataJsonCollectionSerializer(this.jsonOutputContext); }
internal ODataJsonCollectionWriter(ODataJsonOutputContext jsonOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener) : base(jsonOutputContext, expectedItemType, listener) { this.jsonOutputContext = jsonOutputContext; this.jsonCollectionSerializer = new ODataJsonCollectionSerializer(this.jsonOutputContext); }
internal ODataJsonCollectionWriter(ODataJsonOutputContext jsonOutputContext, IEdmTypeReference expectedItemType, IODataReaderWriterListener listener) : base(jsonOutputContext, expectedItemType, listener) { this.jsonOutputContext = jsonOutputContext; this.jsonCollectionSerializer = new ODataJsonCollectionSerializer(this.jsonOutputContext); }